Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddConnector Method
The connector type to add.
The horizontal position (in pixels) of the connector's starting point relative to the upper-left corner of the document.
The vertical position (in pixels) of the connector's starting point relative to the upper-left corner of the document.
The horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.
The vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.


In This Topic
    AddConnector Method
    In This Topic
    Creates a connector.
    Syntax
    'Declaration
     
    
    Function AddConnector( _
       ByVal type As ConnectorType, _
       ByVal beginX As Double, _
       ByVal beginY As Double, _
       ByVal endX As Double, _
       ByVal endY As Double _
    ) As IShape
    'Usage
     
    
    Dim instance As IShapes
    Dim type As ConnectorType
    Dim beginX As Double
    Dim beginY As Double
    Dim endX As Double
    Dim endY As Double
    Dim value As IShape
     
    value = instance.AddConnector(type, beginX, beginY, endX, endY)

    Parameters

    type
    The connector type to add.
    beginX
    The horizontal position (in pixels) of the connector's starting point relative to the upper-left corner of the document.
    beginY
    The vertical position (in pixels) of the connector's starting point relative to the upper-left corner of the document.
    endX
    The horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.
    endY
    The vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.

    Return Value

    The new connector in a worksheet.
    Remarks
    When a connector is added, it's not connected to anything. Use the BeginConnect and EndConnect methods to attach the beginning and end of a connector to other shapes in the document.
    See Also