CanvasShapes.AddConnector Method
Word Developer Reference |
Returns a Shape object that represents a connecting line between two shapes in a drawing canvas.
Syntax
expression.AddConnector(Type, BeginX, BeginY, EndX, EndY)
expression Required. A variable that represents a CanvasShapes collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Type | Required | MsoConnectorType | The type of connector. |
BeginX | Required | Single | The horizontal position that marks the beginning of the connector. |
BeginY | Required | Single | The vertical position that marks the beginning of the connector. |
EndX | Required | Single | The horizontal position that marks the end of the connector. |
EndY | Required | Single | The vertical position that marks the end of the connector. |
Example
The following example adds a straight connector to a new canvas in a new document.
Visual Basic for Applications |
---|
|
See Also