InsertConnector

InsertConnector(int, ShapeType, float, float, float, float)

Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index.

public IConnector InsertConnector(int index, ShapeType shapeType, float x, float y, float width, 
    float height)
ParameterTypeDescription
indexInt32The zero-based index at which value should be inserted.
shapeTypeShapeTypeAn ShapeType of shape.
xSingleThe X-coordinate for a left side of shape’s frame.
ySingleThe Y-coordinate for a top side of shape’s frame.
widthSingleThe width of shape’s frame.
heightSingleThe height of shape’s frame.

Return Value

Created Connector object.

See Also


InsertConnector(int, ShapeType, float, float, float, float, bool)

Creates a new Connector and inserts it to the collection at the specified index.

public IConnector InsertConnector(int index, ShapeType shapeType, float x, float y, float width, 
    float height, bool createFromTemplate)
ParameterTypeDescription
indexInt32The zero-based index at which value should be inserted.
shapeTypeShapeTypeAn ShapeType of shape.
xSingleThe X-coordinate for a left side of shape’s frame.
ySingleThe Y-coordinate for a top side of shape’s frame.
widthSingleThe width of shape’s frame.
heightSingleThe height of shape’s frame.
createFromTemplateBooleanIf true then new shape will be tuned from default template. Not empty name, simple style, text centered will be assined to the new shape. If false then all values of the properties of the new shape will have default values.

Return Value

Created Connector object.

See Also