[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.AddNodes

AddNodes Method

AddNodes(SegmentType, EditingType, double, double, double, double, double, double)

Adds a point in the current shape, and then draws a line from the current node to the last node that was added.

Declaration
IFreeFormBuilder AddNodes(SegmentType segmentType, EditingType editingType, double x1, double y1, double x2 = NaN, double y2 = NaN, double x3 = NaN, double y3 = NaN)
Function AddNodes(segmentType As SegmentType, editingType As EditingType, x1 As Double, y1 As Double, Optional x2 As Double = NaN, Optional y2 As Double = NaN, Optional x3 As Double = NaN, Optional y3 As Double = NaN) As IFreeFormBuilder
Parameters
Type Name Description
SegmentType segmentType

The type of segment to be added.

EditingType editingType

The editing property of the vertex.

double x1

If the editingType of the new segment is Auto, this argument specifies the horizontal distance, in pixcels, 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, in pixcels, 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, in pixcels, 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, in pixcels, 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, in pixcels, from the upper-left corner of the document to the second control point of 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, in pixcels, from the upper-left corner of the document to the second control point of 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, in pixcels, from the upper-left corner of the document to the second control 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, in pixcels, from the upper-left corner of the document to the second control 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
IFreeFormBuilder

A IFreeFormBuilder object.