InlineShape Object

Multiple objects
Multiple objects

Represents an object in the text layer of a document. An inline shape can only be a picture, an OLE object, or an ActiveX control. InlineShape objects are treated like characters and are positioned as characters within a line of text. The InlineShape object is a member of the InlineShapes collection. The InlineShapes collection contains all the shapes in a document, range, or selection.

Using the InlineShape Object

Use InlineShapes(index), where index is the index number, to return a single InlineShape object. Inline shapes don't have names. The following example activates the first inline shape in the active document.



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 ConvertToInlineShape method and the ConvertToShape method 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 Word, pictures are converted to inline shapes.

Properties | AlternativeText Property | Application Property | Borders Property | Creator Property | Field Property | Fill Property | Height Property | HorizontalLineFormat Property | Hyperlink Property | IsPictureBullet Property | Line Property | LinkFormat Property | LockAspectRatio Property | OLEFormat Property | Parent Property | PictureFormat Property | Range Property | ScaleHeight Property | ScaleWidth Property | Script Property | TextEffect Property | Type Property | Width Property

Methods | Activate Method | ConvertToShape Method | Delete Method | Reset Method | Select Method

Parent Objects | Field Object | ListFormat Object | ListLevel Object

Child Objects | Borders Object | Field Object | FillFormat Object | HorizontalLineFormat Object | Hyperlink Object | LineFormat Object | LinkFormat Object | OLEFormat Object | PictureFormat Object | Range Object | TextEffectFormat Object

See Also | Frame Object | Shape Object