Shapes.BuildFreeform Method 

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

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim EditingType As MsoEditingType
Dim X1 As Single
Dim Y1 As Single
Dim returnValue As FreeformBuilder
Dim shapes1 As Shapes
returnValue = shapes1.BuildFreeform(EditingType, X1, Y1)

Syntax

Function BuildFreeform( _
    <InAttribute()> ByVal EditingType As MsoEditingType, _
    <InAttribute()> ByVal X1 As Single, _
    <InAttribute()> ByVal Y1 As Single _
) As FreeformBuilder
FreeformBuilder BuildFreeform(
    [In] MsoEditingType EditingType, 
    [In] float X1, 
    [In] float Y1
);
public: FreeformBuilder^ BuildFreeform(
    MsoEditingType^ EditingType, 
    Single X1, 
    Single Y1
);
public FreeformBuilder BuildFreeform(
    /*in*/MsoEditingType EditingType, 
    /*in*/float X1, 
    /*in*/float Y1
);
function BuildFreeform(
     EditingType : MsoEditingType, 
     X1 : float, 
     Y1 : float
) : FreeformBuilder;

Parameters

  • EditingType
    The editing property of the first node. Required Microsoft.Office.Core.MsoEditingType.

    MsoEditingType can be either of these constants (cannot be msoEditingSmooth or msoEditingSymmetric).

    msoEditingAuto

    msoEditingCorner

  • 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.

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've defined in the FreeformBuilder object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Shapes Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Shapes Members