Class InlineShapes (Word VBA)

A collection of InlineShape objects that represent all the inline shapes in a document, range, or selection.

The classes Document, Range and Selection. give access to class InlineShapes


Dim iss as InlineShapes
Set iss = ActiveDocument.Range.InlineShapes

For Each

Here is an example of processing the InlineShapes items in a collection.


Dim ise As InlineShape
For Each ise In ActiveDocument.Range.InlineShapes
	
Next ise

Methods

Add3DModel - Adds a 3D model to a drawing canvas. Returns a Shape object that represents the 3D model and adds it to the CanvasShapes collection.

AddChart2 - Adds a chart to the document. Returns an InlineShape object that represents the chart and adds it to the specified collection.

AddHorizontalLine - Adds a horizontal line based on an image file to the current document.

AddHorizontalLineStandard - Adds a horizontal line to the current document.

AddOLEControl - Creates an ActiveX control (formerly known as an OLE control). Returns the InlineShape object that represents the new ActiveX control.

AddOLEObject - Creates an OLE object. Returns the InlineShape object that represents the new OLE object.

AddPicture - Adds a picture to a document. Returns an InlineShape object that represents the picture.

AddPictureBullet - Adds a picture bullet based on an image file to the current document. Returns an InlineShape object.

AddSmartArt - Inserts a SmartArt graphic as an inline shape into the active document.

AddWebVideo - Adds a new web video to the document.

Item - Returns an individual InlineShape object in a collection.

New - Inserts an empty, 1-inch-square Word picture object surrounded by a border. This method returns the new graphic as an InlineShape object.

Properties

Count returns a Long that represents the number of inline shapes in the collection.