X1, Y1, X2, Y2

This property returns and sets 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.

Syntax

object.X1 [= value]

object.Y1 [= value]

object.X2 [= value]

object.Y2 [= value]

Parameters

object
Object expression that evaluates to a Line control.
value
Numeric expression that specifies a coordinate.

Remarks

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.