ShapeRange.ConvertToInlineShape Method

Definition

Converts the specified shape in the drawing layer of a document to an inline shape in the text layer. Returns an InlineShape object that represents the picture or OLE object.

public:
 Microsoft::Office::Interop::Word::InlineShape ^ ConvertToInlineShape();
public Microsoft.Office.Interop.Word.InlineShape ConvertToInlineShape ();
abstract member ConvertToInlineShape : unit -> Microsoft.Office.Interop.Word.InlineShape
Public Function ConvertToInlineShape () As InlineShape

Returns

Remarks

You can convert only shapes that represent pictures, OLE objects, or ActiveX controls.

Shapes that support attached text cannot be converted to inline shapes. For these shapes, use the ConvertToFrame() method.

If you use this method on a ShapeRange object that contains more than one shape, an error occurs.

Applies to