Partager via


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)

Syntax

'Declaration
Function ConvertToInlineShape As InlineShape
'Usage
Dim instance As Shape
Dim returnValue As InlineShape

returnValue = instance.ConvertToInlineShape()
InlineShape ConvertToInlineShape()

Return Value

Type: Microsoft.Office.Interop.Word.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.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.Word Namespace