Shape.ConvertToInlineShape MethodÂ
Converts the specified shape in the drawing layer of a document to an inline shape in the text layer.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim returnValue As InlineShape
Dim shape1 As Shape
returnValue = shape1.ConvertToInlineShape()
Syntax
Function ConvertToInlineShape() As InlineShape
InlineShape ConvertToInlineShape();
public: InlineShape^ ConvertToInlineShape();
public InlineShape ConvertToInlineShape();
function ConvertToInlineShape() : InlineShape;
Remarks
You can convert only shapes that represent pictures, OLE objects, or ActiveX controls. This method returns an InlineShape object that represents the picture or OLE object.
Shapes that support attached text cannot be converted to inline shapes. For these shapes, use the ConvertToFrame method.
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