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)

Usage

Dim Type As MsoConnectorType
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.AddConnector(Type, BeginX, BeginY, EndX, EndY)

Syntax

Function AddConnector( _
    <InAttribute()> ByVal Type As MsoConnectorType, _
    <InAttribute()> ByVal BeginX As Single, _
    <InAttribute()> ByVal BeginY As Single, _
    <InAttribute()> ByVal EndX As Single, _
    <InAttribute()> ByVal EndY As Single _
) As Shape
Shape AddConnector(
    [In] MsoConnectorType Type, 
    [In] float BeginX, 
    [In] float BeginY, 
    [In] float EndX, 
    [In] float EndY
);
public: Shape^ AddConnector(
    MsoConnectorType^ Type, 
    Single BeginX, 
    Single BeginY, 
    Single EndX, 
    Single EndY
);
public Shape AddConnector(
    /*in*/MsoConnectorType Type, 
    /*in*/float BeginX, 
    /*in*/float BeginY, 
    /*in*/float EndX, 
    /*in*/float EndY
);
function AddConnector(
     Type : MsoConnectorType, 
     BeginX : float, 
     BeginY : float, 
     EndX : float, 
     EndY : float
) : Shape;

Parameters

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

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

Other Resources

CanvasShapes Members