Syntax

expression.BuildFreeform(EditingType, X1, Y1)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data Type Description
EditingType Required The editing property of the first node.
X1 Required Single The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.
Y1 Required Single The position (in points) of the first node in the freeform drawing relative to the upper-left corner of the document.

Return Value
FreeformBuilder

Example

This example adds a freeform with five vertices to myDocument.

Visual Basic for Applications
Set myDocument = Worksheets(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 .ConvertToShape End With
build build freeform BuildFreeform buildfreeform method

See also: