InlineShape InlineShape InlineShape Interface


Represents an object in the text layer of a document.

public interface class InlineShape
public interface InlineShape
Public Interface InlineShape


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.

Use InlineShapes(index), where index is the index number, to return a single InlineShape 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 ConvertToInlineShape() method and the 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.


AlternativeText AlternativeText AlternativeText

Returns or sets the alternative text associated with a shape in a Web page.

AnchorID AnchorID AnchorID
Application Application Application

Returns a Application object that represents the Microsoft Word application.

Borders Borders Borders

Returns a Borders collection that represents all the borders for the specified object.

Chart Chart Chart

Returns a chart within the collection of inline shapes in a document. Read-only.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

EditID EditID EditID
Field Field Field

Returns a Field object that represents the field associated with the specified shape.

Fill Fill Fill

Returns a FillFormat object that contains fill formatting properties for the specified shape.

Glow Glow Glow

Returns the formatting properties for a glow effect. Read-only.

GroupItems GroupItems GroupItems

Returns the shapes that are grouped together for an inline shape. Read-only.

HasChart HasChart HasChart

True if the specified shape is a chart. Read-only.

HasSmartArt HasSmartArt HasSmartArt

Gets True if there is a SmartArt diagram present on the shape.

Height Height Height

Returns or sets the height of the specified inline shape.

HorizontalLineFormat HorizontalLineFormat HorizontalLineFormat

Returns a HorizontalLineFormat object that contains the horizontal line formatting for the specified InlineShape object.

Hyperlink Hyperlink Hyperlink

Returns a Hyperlink object that represents the hyperlink associated with the specified InlineShape object.

IsPictureBullet IsPictureBullet IsPictureBullet

Determines if a InlineShape object is a picture bullet.

Line Line Line

Returns a LineFormat object that contains line formatting properties for the specified shape.

LinkFormat LinkFormat LinkFormat

Returns a LinkFormat object that represents the link options of the specified InlineShape that's linked to a file.

LockAspectRatio LockAspectRatio LockAspectRatio

Determines whether the specified shape retains its original proportions when you resize it.

OLEFormat OLEFormat OLEFormat

Returns a OLEFormat object that represents the OLE characteristics (other than linking) for the specified InlineShape.

OWSAnchor OWSAnchor OWSAnchor

Reserved for internal use.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

PictureFormat PictureFormat PictureFormat

Returns a PictureFormat object that contains picture formatting properties for the specified object.

Range Range Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

Reflection Reflection Reflection

Returns the reflection formatting for a shape. Read-only.

ScaleHeight ScaleHeight ScaleHeight

Scales the height of the specified inline shape relative to its original size.

ScaleWidth ScaleWidth ScaleWidth

Scales the width of the specified inline shape relative to its original size.

Script Script Script

Returns a Microsoft.Office.Core.Script object, which represents a block of script or code on the specified Web page.

Shadow Shadow Shadow

Returns the shadow formatting for the specified shape. Read-only.

SmartArt SmartArt SmartArt

Gets a Microsoft.Office.Core.SmartArt object that provides a way to work with the SmartArt associated with the specified inline shape.

SoftEdge SoftEdge SoftEdge

Returns the soft edge formatting for a shape. Read-only.

TextEffect TextEffect TextEffect

Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape.

Title Title Title

Gets or sets a value that contains a title for the specified inline shape.

Type Type Type

Returns the type of inline shape.

Width Width Width

Returns or sets the width of the specified object, in points.


Activate() Activate() Activate()

Activates the specified object.

ConvertToShape() ConvertToShape() ConvertToShape()

Converts an inline shape to a free-floating shape and returns a Shape object that represents the new shape.

Delete() Delete() Delete()

Deletes the specified object.

Reset() Reset() Reset()

Removes changes that were made to an inline shape.

Select() Select() Select()

Selects the specified object.

Applies to