AddLine Method

         Example         Applies To

Creates a line. Returns a Shape object that represents the new line.

Syntax

expression.AddLine(BeginX, Beginy, EndX, EndY)

expression   Required. An expression that returns a Shapes object.

BeginX, BeginY   Required Single. The position (in points) of the line's starting point relative to the upper-left corner of the document.

EndX, EndY   Required Single. The position (in points) of the line's end point relative to the upper-left corner of the document.