|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Represents an object in the text layer of a document.
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
An inline shape can only be a picture, an OLE object, or an ActiveX control. objects are treated like characters and are positioned as characters within a line of text. The object is a member of the InlineShapes collection. The InlineShapes collection contains all the shapes in a document, range, or selection.
Use InlineShapes(index), where index is the index number, to return a single object. Inline shapes don't have names.
Shape objects are anchored to a range of text but are free-floating and can be positioned anywhere on the page. You can use the Shape.ConvertToInlineShape method and the InlineShape.ConvertToShape methods to convert shapes from one type to the other. You can convert only pictures, OLE objects, and ActiveX controls to inline shapes. Use the Type property to return the type of inline shape: picture, linked picture, embedded OLE object, linked OLE object, or ActiveX control.
When you open a document created in an earlier version of Microsoft Word, pictures are converted to inline shapes.