Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IFreeFormBuilder Interface / AddNodes Method
The type of segment to be added.
The editing property of the vertex.
If the editingType of the new segment is EditingType.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 EditingType.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.
If the editingType of the new segment is EditingType.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 EditingType.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.
If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.


In This Topic
    AddNodes Method
    In This Topic
    Adds a point in the current shape, and then draws a line from the current node to the last node that was added.
    Syntax
    'Declaration
     
    
    Function AddNodes( _
       ByVal segmentType As SegmentType, _
       ByVal editingType As EditingType, _
       ByVal x1 As Double, _
       ByVal y1 As Double, _
       Optional ByVal x2 As Double, _
       Optional ByVal y2 As Double, _
       Optional ByVal x3 As Double, _
       Optional ByVal y3 As Double _
    ) As IFreeFormBuilder
    'Usage
     
    
    Dim instance As IFreeFormBuilder
    Dim segmentType As SegmentType
    Dim editingType As EditingType
    Dim x1 As Double
    Dim y1 As Double
    Dim x2 As Double
    Dim y2 As Double
    Dim x3 As Double
    Dim y3 As Double
    Dim value As IFreeFormBuilder
     
    value = instance.AddNodes(segmentType, editingType, x1, y1, x2, y2, x3, y3)

    Parameters

    segmentType
    The type of segment to be added.
    editingType
    The editing property of the vertex.
    x1
    If the editingType of the new segment is EditingType.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 EditingType.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.
    y1
    If the editingType of the new segment is EditingType.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 EditingType.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.
    x2
    If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
    y2
    If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
    x3
    If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
    y3
    If the editingType of the new segment is EditingType.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 EditingType.Auto, don't specify a value for this argument.
    See Also