Return or set the coordinates of the starting point (X1, Y1) and ending point (X2, Y2) of a Line control. The horizontal coordinates are X1 and X2; the vertical coordinates are Y1 and Y2.
object.X1 [= value]
object.Y1 [= value]
object.X2 [= value]
object.Y2 [= value]
The parts of the X1, Y1, X2, and Y2 property syntaxes are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
value | A numeric expression specifying a coordinate. |
Use these properties to dynamically extend a Line control from one point to another at run time. For example, you can show the relationships of items in one list to items in another list or connect points on a map.