CanvasShapes.AddConnector Method

Adds a connecting line between two shapes in a drawing canvas.

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

Syntax

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

returnValue = instance.AddConnector(Type, _
    BeginX, BeginY, EndX, EndY)
Shape AddConnector(
    MsoConnectorType Type,
    float BeginX,
    float BeginY,
    float EndX,
    float EndY
)

Parameters

  • Type
    Type: MsoConnectorType
    The type of connector.
  • BeginX
    Type: System.Single
    The horizontal position that marks the beginning of the connector.
  • BeginY
    Type: System.Single
    The vertical position that marks the beginning of the connector.
  • EndX
    Type: System.Single
    The horizontal position that marks the end of the connector.
  • EndY
    Type: System.Single
    The vertical position that marks the end of the connector.

Return Value

Type: Microsoft.Office.Interop.Word.Shape

See Also

Reference

CanvasShapes Interface

CanvasShapes Members

Microsoft.Office.Interop.Word Namespace