This documentation is archived and is not being maintained.

CanvasShapes.AddLine Method

Adds a line to a drawing canvas.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Shape AddLine(
	float BeginX,
	float BeginY,
	float EndX,
	float EndY
)

Parameters

BeginX
Type: System.Single
The horizontal position, measured in points, of the line's starting point, relative to the drawing canvas.
BeginY
Type: System.Single
The vertical position, measured in points, of the line's starting point, relative to the drawing canvas.
EndX
Type: System.Single
The horizontal position, measured in points, of the line's end point, relative to the drawing canvas.
EndY
Type: System.Single
The vertical position, measured in points, of the line's end point, relative to the drawing canvas.
Show: