CanvasShapes.BuildFreeform Method 

Builds a freeform object.

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 canvasShapes1 As CanvasShapes
returnValue = canvasShapes1.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.
  • X1
    The X-position of the first node in the freeform drawing relative to the upper-left corner of the document.
  • Y1
    The Y-position 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

CanvasShapes Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

CanvasShapes Members