Shapes.BuildFreeform Method

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.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

  • X1
    Type: System.Single
    The horizontal position, measured in points, of the first node in the freeform drawing relative to the left edge of the slide.
  • Y1
    Type: System.Single
    The vertical position, measured in points, of the first node in the freeform drawing relative to the top edge of the slide.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.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 have defined in the FreeformBuilder object.

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.PowerPoint Namespace