DrawLine method
Adds a line to the Shapes collection of a page, master, or group.
Version added
2.0
Syntax
| |
objRet |
A Shape object that represents the new line. |
object |
Required. An expression that returns a Page, Master, or Shape object on which to draw the line. |
x1 |
Required Double. The x-coordinate of the line's begin point. |
y1 |
Required Double. The y-coordinate of the line's begin point. |
x2 |
Required Double. The x-coordinate of the line's end point. |
y2 |
Required Double. The y-coordinate of the line's end point. |
Remarks
Using the DrawLine method is equivalent to using the Line tool in Visio. The arguments are in internal drawing units with respect to the coordinate space of the page, master, or group where the line is being placed.