Table of contents
TOC
Collapse the table of content
Expand the table of content

InlineShapes.Item Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a Shape object that represents an inline shape contained in a text range. This method is the default member of the InlineShapes collection.

Syntax

expression. Item( Index)

_expression_A variable that represents an InlineShapes object.

Parameters

NameRequired/OptionalData TypeDescription
varRequiredVariantThe index position or name of the object to return. If Index is an integer, the index into the collection is 1-based. If Index is a string, the name of the shape is used as the index. An automation error is returned if the index or name does not represent a shape in the collection.

Return Value

Shape

Example

This example finds the first inline shape in a text range and flips it vertically.

Dim theShape As Shape 

Set theShape = ActiveDocument.Pages(1).Shapes(1) 

With theShape.TextFrame.Story.TextRange 
 With .InlineShapes.Item(1) 
 .Flip (msoFlipVertical) 
 End With 
End With
© 2018 Microsoft