Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddConnectorToCell Method
The connector type to add.
The row index of the upper-left corner of the shape's bounding box.
The column index of the upper-left corner of the shape's bounding box.
The row index of the lower-right corner of the shape's bounding box.
The column index of the lower-right corner of the shape's bounding box.


In This Topic
    AddConnectorToCell Method
    In This Topic
    Creates a connector.
    Syntax
    'Declaration
     
    
    Function AddConnectorToCell( _
       ByVal type As ConnectorType, _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal row2 As Integer, _
       ByVal column2 As Integer _
    ) As IShape
    'Usage
     
    
    Dim instance As IShapes
    Dim type As ConnectorType
    Dim row As Integer
    Dim column As Integer
    Dim row2 As Integer
    Dim column2 As Integer
    Dim value As IShape
     
    value = instance.AddConnectorToCell(type, row, column, row2, column2)
    IShape AddConnectorToCell( 
       ConnectorType type,
       int row,
       int column,
       int row2,
       int column2
    )

    Parameters

    type
    The connector type to add.
    row
    The row index of the upper-left corner of the shape's bounding box.
    column
    The column index of the upper-left corner of the shape's bounding box.
    row2
    The row index of the lower-right corner of the shape's bounding box.
    column2
    The column index of the lower-right corner of the shape's bounding box.

    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