Shape.ConvertToFrame Method

Converts the specified shape to a frame.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function ConvertToFrame As Frame
'Usage
Dim instance As Shape
Dim returnValue As Frame

returnValue = instance.ConvertToFrame()
Frame ConvertToFrame()

Return Value

Type: Microsoft.Office.Interop.Word.Frame

Remarks

This property returns a Frame object that represents the new frame.

Shapes that don't support attached text cannot be converted to frames. For pictures, OLE objects, and ActiveX controls, use the ConvertToInlineShape method.

In Microsoft Word 97 and later, frames have been replaced by text boxes.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.Word Namespace