ShapeNodes.Insert 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.
Inserts a node into a freeform shape.
public void Insert (int Index, Microsoft.Office.Core.MsoSegmentType SegmentType, Microsoft.Office.Core.MsoEditingType EditingType, float X1, float Y1, float X2 = 0, float Y2 = 0, float X3 = 0, float Y3 = 0);
abstract member Insert : int * Microsoft.Office.Core.MsoSegmentType * Microsoft.Office.Core.MsoEditingType * single * single * single * single * single * single -> unit
Public Sub Insert (Index As Integer, SegmentType As MsoSegmentType, EditingType As MsoEditingType, X1 As Single, Y1 As Single, Optional X2 As Single = 0, Optional Y2 As Single = 0, Optional X3 As Single = 0, Optional Y3 As Single = 0)
Parameters
- Index
- Int32
Required Integer. The number of the shape node after which to insert a new node.
- SegmentType
- MsoSegmentType
Required MsoSegmentType. The type of line that connects the inserted node to the neighboring nodes.
- EditingType
- MsoEditingType
Required MsoEditingType. The editing property of the inserted node.
- X1
- Single
Required Single. If the EditingType
of the new segment is msoEditingAuto, this argument specifies the horizontal distance, measured 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, measured 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 vertical distance, measured 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 vertical distance, measured in points, from the upper-left corner of the document to the first control point for the new segment.
- X2
- Single
Optional Single. If the EditingType
of the new segment is msoEditingCorner, this argument specifies the horizontal distance, measured 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
- Single
Optional Single. If the EditingType
of the new segment is msoEditingCorner, this argument specifies the vertical distance, measured 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
- Single
Optional Single. If the EditingType
of the new segment is msoEditingCorner, this argument specifies the horizontal distance, measured 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
- Single
Optional Single. If the EditingType
of the new segment is msoEditingCorner, this argument specifies the vertical distance, measured 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.