TextRange.InlineShapes Property
Publisher Developer Reference |
Returns an InlineShapes collection, which represents the inline shapes contained within a text range. Read-only.
Syntax
expression.InlineShapes
expression A variable that represents an TextRange object.
Return Value
InlineShapes
Remarks
Using TextFrame.Story.TextRange.InlineShapes will return all inline shapes in a text frame, including those that are in overflow. Using TextFrame.TextRange.InlineShapes will return only visible inline shapes in a text frame, and not those that are in overflow.
Example
The following example finds the first shape (a text box) on page one of the active publication. The InlineShapes property is then used to determine whether any inline shapes exist in the text box. If any are found, each inline shape is flipped vertically, and its fore color is set to red.
Note that by using TextFrame.Story.TextRange.InlineShapes, any inline shapes that are in overflow will also be found.
Visual Basic for Applications |
---|
|
See Also