Compartir a través de


FreeformBuilder.AddNodes Method

Adds a node to a freeform.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub AddNodes ( _
    SegmentType As MsoSegmentType, _
    EditingType As MsoEditingType, _
    X1 As Single, _
    Y1 As Single, _
    X2 As Object, _
    Y2 As Object, _
    X3 As Object, _
    Y3 As Object _
)
'Usage
Dim instance As FreeformBuilder
Dim SegmentType As MsoSegmentType
Dim EditingType As MsoEditingType
Dim X1 As Single
Dim Y1 As Single
Dim X2 As Object
Dim Y2 As Object
Dim X3 As Object
Dim Y3 As Object

instance.AddNodes(SegmentType, EditingType, _
    X1, Y1, X2, Y2, X3, Y3)
void AddNodes(
    MsoSegmentType SegmentType,
    MsoEditingType EditingType,
    float X1,
    float Y1,
    Object X2,
    Object Y2,
    Object X3,
    Object Y3
)

Parameters

  • SegmentType
    Type: Microsoft.Office.Core.MsoSegmentType

    Required MsoSegmentType. The type of segment to be added.

    MsoSegmentType can be one of these constants:

    msoSegmentLine

    msoSegmentCurve

  • EditingType
    Type: Microsoft.Office.Core.MsoEditingType

    Required MsoEditingType. The editing property of the vertex.

    MsoEditingType can be one of these constants:

    msoEditingAuto

    msoEditingCorner

    Cannot be msoEditingSmooth or msoEditingSymmetric.

    If SegmentType is msoSegmentLine, EditingType must be msoEditingAuto.

  • X1
    Type: System.Single

    Required Single.

    If the EditingType of the new segment is msoEditingAuto, this argument specifies the horizontal distance (in points) from the upper-left corner of the document to the end point of the new segment.

    If the EditingType of the new node is msoEditingCorner, this argument specifies the horizontal distance (in points) from the upper-left corner of the document to the first control point for the new segment.

  • Y1
    Type: System.Single

    Required Single.

    If the EditingType of the new segment is msoEditingAuto, this argument specifies the horizontal distance (in points) from the upper-left corner of the document to the end point of the new segment.

    If the EditingType of the new node is msoEditingCorner, this argument specifies the horizontal distance (in points) from the upper-left corner of the document to the first control point for the new segment.

  • X2
    Type: System.Object

    Optional Object.

    If the EditingType of the new segment is msoEditingCorner, this argument specifies the horizontal distance (in points) 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 msoEditingAuto, don't specify a value for this argument.

  • Y2
    Type: System.Object

    Optional Object.

    If the EditingType of the new segment is msoEditingCorner, this argument specifies the horizontal distance (in points) 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 msoEditingAuto, don't specify a value for this argument.

  • X3
    Type: System.Object

    Optional Object.

    If the EditingType of the new segment is msoEditingCorner, this argument specifies the horizontal distance (in points) from the upper-left corner of the document to the end point of the new segment.

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

  • Y3
    Type: System.Object

    Optional Object.

    If the EditingType of the new segment is msoEditingCorner, this argument specifies the vertical distance (in points) from the upper-left corner of the document to the end point of the new segment.

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

See Also

Reference

FreeformBuilder Interface

FreeformBuilder Members

Microsoft.Office.Interop.Excel Namespace