FreeformBuilder.ConvertToShape Method
Creates a shape that has the geometric characteristics of the specified object. Returns a Shape object that represents the new shape.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function ConvertToShape ( _
ByRef Anchor As Object _
) As Shape
'Usage
Dim instance As FreeformBuilder
Dim Anchor As Object
Dim returnValue As Shape
returnValue = instance.ConvertToShape(Anchor)
Shape ConvertToShape(
ref Object Anchor
)
Parameters
- Anchor
Type: System.Object%
Optional Object. A Range object that represents the text to which the shape is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the shape is positioned relative to the top and left edges of the page.
Return Value
Type: Microsoft.Office.Interop.Word.Shape
Remarks
You must apply the AddNodes method to a FreeformBuilder object at least once before you use the ConvertToShape method.