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

FreeformBuilder Object (PowerPoint)

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

Represents the geometry of a freeform while it is being built.

Example

Use the BuildFreeformmethod to return a FreeformBuilder object. Use theAddNodesmethod to add nodes to the freefrom. Use the ConvertToShapemethod to create the shape defined in the FreeformBuilder object and add it to the Shapes collection. The following example adds a freeform with four segments to myDocument.

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, 40
    .AddNodes msoSegmentLine, msoEditingAuto, 360, 200
    .ConvertToShape
End With

See also

Concepts

PowerPoint Object Model Reference

© 2018 Microsoft