FreeformBuilder.AddNodes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a node to a freeform.
public void AddNodes (Microsoft.Office.Core.MsoSegmentType SegmentType, Microsoft.Office.Core.MsoEditingType EditingType, float X1, float Y1, object X2, object Y2, object X3, object Y3);
Public Sub AddNodes (SegmentType As MsoSegmentType, EditingType As MsoEditingType, X1 As Single, Y1 As Single, Optional X2 As Object, Optional Y2 As Object, Optional X3 As Object, Optional Y3 As Object)
Parameters
- SegmentType
- MsoSegmentType
Required Microsoft.Office.Interop.Office.MsoSegmentType. The type of segment to be added.MsoSegmentType can be one of these constants:msoSegmentLinemsoSegmentCurve
- EditingType
- MsoEditingType
Required Microsoft.Office.Interop.Office.MsoEditingType. The editing property of the vertex.MsoEditingType can be one of these constants:msoEditingAutomsoEditingCornerCannot be msoEditingSmooth or msoEditingSymmetric.If SegmentType
is msoSegmentLine, EditingType
must be msoEditingAuto.
- X1
- 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
- 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
- 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
- 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
- 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
- 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.