ShapeNodes.Insert Method
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)
'Usage 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 Dim shapeNodes1 As ShapeNodes shapeNodes1.Insert(Index, SegmentType, EditingType, X1, Y1, X2, Y2, X3, Y3)
void Insert( [In] int Index, [In] MsoSegmentType SegmentType, [In] MsoEditingType EditingType, [In] float X1, [In] float Y1, [In, Optional] float X2, [In, Optional] float Y2, [In, Optional] float X3, [In, Optional] float Y3 );
public void Insert( /*in*/int Index, /*in*/MsoSegmentType SegmentType, /*in*/MsoEditingType EditingType, /*in*/float X1, /*in*/float Y1, /*in*/float X2, /*in*/float Y2, /*in*/float X3, /*in*/float Y3 );
function Insert( Index : int, SegmentType : MsoSegmentType, EditingType : MsoEditingType, X1 : float, Y1 : float, X2 : float, Y2 : float, X3 : float, Y3 : float );
Parameters
- Index
Required Integer. The number of the shape node after which to insert a new node.
- SegmentType
Required Microsoft.Office.Core.MsoSegmentType. The segment type.
- EditingType
Required Microsoft.Office.Core.MsoEditingType. The editing type.
- X1
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
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
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
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
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
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.
Reference
ShapeNodes InterfaceMicrosoft.Office.Interop.Excel Namespace