Table of contents
Collapse the table of content
Expand the table of content

FreeformBuilder.ConvertToShape Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Creates a shape that has the geometric characteristics of the specified FreeformBuilder object. Returns a Shape object that represents the new shape.


expression. ConvertToShape

expression A variable that represents a FreeformBuilder object.

Return Value



You must apply the AddNodesmethod to a FreeformBuilder object at least once before you use the ConvertToShape method.


This example adds a freeform with five vertices to the first slide in the active presentation.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.BuildFreeform(msoEditingCorner, 360, 200)
    .AddNodes msoSegmentCurve, _
        msoEditingCorner, 380, 230, 400, 250, 450, 300
    .AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
    .AddNodes msoSegmentLine, msoEditingAuto, 480, 400
    .AddNodes msoSegmentLine, msoEditingAuto, 360, 200
End With

See also


FreeformBuilder Object

© 2018 Microsoft