ShapeRange.ConvertToFrame Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the specified shape to a frame. Returns a Frame object that represents the new frame.
public:
Microsoft::Office::Interop::Word::Frame ^ ConvertToFrame();
public Microsoft.Office.Interop.Word.Frame ConvertToFrame ();
abstract member ConvertToFrame : unit -> Microsoft.Office.Interop.Word.Frame
Public Function ConvertToFrame () As Frame
Returns
Remarks
Shapes that don't support attached text cannot be converted to frames. For pictures, OLE objects, and ActiveX controls, use the ConvertToInlineShape() method.
If you use this method on a ShapeRange object that contains more than one shape, an error occurs.
In Microsoft Word 97 and later, frames have been replaced by text boxes.