This topic has not yet been rated - Rate this topic

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)

'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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.