[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapes.AddConnector

AddConnector Method

AddConnector(ConnectorType, double, double, double, double)

Creates a connector.

Declaration
IShape AddConnector(ConnectorType type, double beginX, double beginY, double endX, double endY)
Function AddConnector(type As ConnectorType, beginX As Double, beginY As Double, endX As Double, endY As Double) As IShape
Parameters
Type Name Description
ConnectorType type

The connector type to add.

double beginX

The horizontal position (in pixels) of the connector's starting point relative to the upper-left corner of the document.

double beginY

The vertical position (in pixels) of the connector's starting point relative to the upper-left corner of the document.

double endX

The horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.

double endY

The vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.

Returns
Type Description
IShape

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.