Share via


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)

Usage

Dim returnValue As Frame
Dim shape1 As Shape
returnValue = shape1.ConvertToFrame()

Syntax

Function ConvertToFrame() As Frame
Frame ConvertToFrame();
public: Frame^ ConvertToFrame();
public Frame ConvertToFrame();
function ConvertToFrame() : 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.

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

Shape Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Shape Members