[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapeNodes.Insert

Insert Method

Insert(int, SegmentType, EditingType, double, double, double, double, double, double)

Inserts a node into a freeform shape.

Declaration
IShapeNode Insert(int index, SegmentType segmentType, EditingType editingType, double x1, double y1, double x2, double y2, double x3, double y3)
Function Insert(index As Integer, segmentType As SegmentType, editingType As EditingType, x1 As Double, y1 As Double, x2 As Double, y2 As Double, x3 As Double, y3 As Double) As IShapeNode
Parameters
Type Name Description
int index

The number of the shape node after which to insert a new node.

SegmentType segmentType

The segment type.

EditingType editingType

The editing type.

double x1

If the editingType of the new segment is Auto, this argument specifies the horizontal distance, measured in pixels, from the upper-left corner of the document to the end point of the new segment.

If the editingType of the new node is Corner , this argument specifies the horizontal distance, measured in pixels, from the upper-left corner of the document to the first control point for the new segment.

double y1

If the editingType of the new segment is Auto, this argument specifies the vertical distance, measured in pixels, from the upper-left corner of the document to the end point of the new segment.

If the editingType of the new node is Corner , this argument specifies the vertical distance, measured in pixels, from the upper-left corner of the document to the first control point for the new segment.

double x2

If the editingType of the new segment is Corner, this argument specifies the horizontal distance, measured in pixels, from the upper-left corner of the document to the second control point for the new segment.

If the editingType of the new segment is Auto , don't specify a value for this argument.

double y2

If the editingType of the new segment is Corner , this argument specifies the vertical distance, measured in pixels, from the upper-left corner of the document to the second control point for the new segment.

If the editingType of the new segment is Auto , don't specify a value for this argument.

double x3

If the editingType of the new segment is Corner , this argument specifies the horizontal distance, measured in pixels, from the upper-left corner of the document to the end point of the new segment.

If the editingType of the new segment is Auto , don't specify a value for this argument.

double y3

If the editingType of the new segment is Corner , this argument specifies the vertical distance, measured in pixels, from the upper-left corner of the document to the end point of the new segment.

If the editingType of the new segment is Auto , don't specify a value for this argument.

Returns
Type Description
IShapeNode

IShapeNode.