ShapeNodes.Insert Method
Inserts a node into a freeform shape.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Insert ( _
Index As Integer, _
SegmentType As MsoSegmentType, _
EditingType As MsoEditingType, _
X1 As Single, _
Y1 As Single, _
X2 As Single, _
Y2 As Single, _
X3 As Single, _
Y3 As Single _
)
'Usage
Dim instance As ShapeNodes
Dim Index As Integer
Dim SegmentType As MsoSegmentType
Dim EditingType As MsoEditingType
Dim X1 As Single
Dim Y1 As Single
Dim X2 As Single
Dim Y2 As Single
Dim X3 As Single
Dim Y3 As Single
instance.Insert(Index, SegmentType, EditingType, _
X1, Y1, X2, Y2, X3, Y3)
void Insert(
int Index,
MsoSegmentType SegmentType,
MsoEditingType EditingType,
float X1,
float Y1,
float X2,
float Y2,
float X3,
float Y3
)
Parameters
Index
Type: System.Int32Required Integer. The number of the shape node after which to insert a new node.
SegmentType
Type: Microsoft.Office.Core.MsoSegmentTypeRequired MsoSegmentType. The segment type.
EditingType
Type: Microsoft.Office.Core.MsoEditingTypeRequired MsoEditingType. The editing type.
X1
Type: System.SingleRequired 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
Type: System.SingleRequired 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
Type: System.SingleOptional 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
Type: System.SingleOptional 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
Type: System.SingleOptional 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
Type: System.SingleOptional 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.