单项选择题
阅读以下Visual Basic代码片段,其中Image1是一个Image控件的名字,Image1被放置在主窗体Form1上面。
Private Sub Command1_Click()
If Image1.Left + Image1.Width + 100 < Form1.Width Then
Image1.Move Image1.Left + Image1.Width + 100
Else
Image1.Move 150
End If
End Sub
其中条件判断语句的作用是()。
A.使Image1移动到Image1.Width + 100的位置。
B.使Image1的宽度永远小于Form1的宽度。
C.使Image1不至于被移动到Form1外面。
D.使Image1的宽度增加100个坐标单位。