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)
Usage
Dim BeginX As Single
Dim BeginY As Single
Dim EndX As Single
Dim EndY As Single
Dim returnValue As Shape
Dim canvasShapes1 As CanvasShapes
returnValue = canvasShapes1.AddLine(BeginX, BeginY, EndX, EndY)
Syntax
Function AddLine( _
<InAttribute()> ByVal BeginX As Single, _
<InAttribute()> ByVal BeginY As Single, _
<InAttribute()> ByVal EndX As Single, _
<InAttribute()> ByVal EndY As Single _
) As Shape
Shape AddLine(
[In] float BeginX,
[In] float BeginY,
[In] float EndX,
[In] float EndY
);
public: Shape^ AddLine(
Single BeginX,
Single BeginY,
Single EndX,
Single EndY
);
public Shape AddLine(
/*in*/float BeginX,
/*in*/float BeginY,
/*in*/float EndX,
/*in*/float EndY
);
function AddLine(
BeginX : float,
BeginY : float,
EndX : float,
EndY : float
) : Shape;
Parameters
- BeginX
The horizontal position, measured in points, of the line's starting point, relative to the drawing canvas.
- BeginY
The vertical position, measured in points, of the line's starting point, relative to the drawing canvas.
- EndX
The horizontal position, measured in points, of the line's end point, relative to the drawing canvas.
- EndY
The vertical position, measured in points, of the line's end point, relative to the drawing canvas.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
CanvasShapes Interface
Microsoft.Office.Interop.Word Namespace