Shapes.BuildFreeform Method
Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function BuildFreeform ( _
EditingType As MsoEditingType, _
X1 As Single, _
Y1 As Single _
) As FreeformBuilder
'Usage
Dim instance As Shapes
Dim EditingType As MsoEditingType
Dim X1 As Single
Dim Y1 As Single
Dim returnValue As FreeformBuilder
returnValue = instance.BuildFreeform(EditingType, _
X1, Y1)
FreeformBuilder BuildFreeform(
MsoEditingType EditingType,
float X1,
float Y1
)
Parameters
EditingType
Type: Microsoft.Office.Core.MsoEditingTypeRequired MsoEditingType. The editing property of the first node.
X1
Type: System.SingleRequired Single. The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.
Y1
Type: System.SingleRequired Single. The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.
Return Value
Type: Microsoft.Office.Interop.Excel.FreeformBuilder
Remarks
Use the AddNodes method to add segments to the freeform. After you have added at least one segment to the freeform, you can use the ConvertToShape method to convert the FreeformBuilder object into a Shape object that has the geometric description you’ve defined in the FreeformBuilder object.