Share via


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)

Syntax

'Declaration
Function AddLine ( _
    BeginX As Single, _
    BeginY As Single, _
    EndX As Single, _
    EndY As Single _
) As Shape
'Usage
Dim instance As CanvasShapes
Dim BeginX As Single
Dim BeginY As Single
Dim EndX As Single
Dim EndY As Single
Dim returnValue As Shape

returnValue = instance.AddLine(BeginX, _
    BeginY, EndX, EndY)
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.

Return Value

Type: Microsoft.Office.Interop.Word.Shape

See Also

Reference

CanvasShapes Interface

CanvasShapes Members

Microsoft.Office.Interop.Word Namespace