Block.AddLine2(ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As IVdLine
X coordinate of the line’s starting point.
Y coordinate of the line’s starting point.
X coordinate of the line’s end point.
Y coordinate of the line’s end point.
As IVdLine. The newly created Line Object.
The points passed in are packed into four longs, with X1 and Y1 representing the coordinates for the line’s starting point and X2, Y2 representing the coordinates for the end point.