Modifica

Condividi tramite


Shapes.BuildFreeform(MsoEditingType, Single, Single) Method

Definition

Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built.

public:
 Microsoft::Office::Interop::Excel::FreeformBuilder ^ BuildFreeform(Microsoft::Office::Core::MsoEditingType EditingType, float X1, float Y1);
public Microsoft.Office.Interop.Excel.FreeformBuilder BuildFreeform (Microsoft.Office.Core.MsoEditingType EditingType, float X1, float Y1);
Public Function BuildFreeform (EditingType As MsoEditingType, X1 As Single, Y1 As Single) As FreeformBuilder

Parameters

EditingType
MsoEditingType

Required MsoEditingType. The editing property of the first node.

X1
Single

Required Single. The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.

Y1
Single

Required Single. The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.

Returns

Remarks

Use the AddNodes(MsoSegmentType, MsoEditingType, Single, Single, Object, Object, Object, Object) 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.

Applies to