This documentation is archived and is not being maintained.

FreeformBuilder.AddNodes Method 

Adds a node to a freeform.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim SegmentType As MsoSegmentType
Dim EditingType As MsoEditingType
Dim X1 As Single
Dim Y1 As Single
Dim X2 As Object
Dim Y2 As Object
Dim X3 As Object
Dim Y3 As Object
Dim freeformBuilder1 As FreeformBuilder
freeformBuilder1.AddNodes(SegmentType, EditingType, X1, Y1, X2, Y2, X3, Y3)

void AddNodes(
	[In] MsoSegmentType SegmentType, 
	[In] MsoEditingType EditingType, 
	[In] float X1, 
	[In] float Y1, 
	[In, Optional] object X2, 
	[In, Optional] object Y2, 
	[In, Optional] object X3, 
	[In, Optional] object Y3
);
public void AddNodes(
	/*in*/MsoSegmentType SegmentType, 
	/*in*/MsoEditingType EditingType, 
	/*in*/float X1, 
	/*in*/float Y1, 
	/*in*/System.Object X2, 
	/*in*/System.Object Y2, 
	/*in*/System.Object X3, 
	/*in*/System.Object Y3
);
function AddNodes(
	 SegmentType : MsoSegmentType, 
	 EditingType : MsoEditingType, 
	 X1 : float, 
	 Y1 : float, 
	 X2 : Object, 
	 Y2 : Object, 
	 X3 : Object, 
	 Y3 : Object
);

Parameters

SegmentType

Required Microsoft.Office.Interop.Office.MsoSegmentType. The type of segment to be added.

MsoSegmentType can be one of these constants:

msoSegmentLine

msoSegmentCurve

EditingType

Required Microsoft.Office.Interop.Office.MsoEditingType. The editing property of the vertex.

MsoEditingType can be one of these constants:

msoEditingAuto

msoEditingCorner

Cannot be msoEditingSmooth or msoEditingSymmetric.

If SegmentType is msoSegmentLine, EditingType must be msoEditingAuto.

X1

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

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

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

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

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

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.

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

Show: