GraphicItem.Index property (Visio)

Gets or sets the ordinal position of a GraphicItem object in the GraphicItems collection of a data graphic master—a Master object of type visTypeDataGraphic. Read/write.

Note

This Visio object or member is available only to licensed users of Visio Professional 2013.

Syntax

expression.Index

expression A variable that represents a GraphicItem object.

Return value

Long

Remarks

The index of a graphic item is originally determined by the order in which the item was added to the collection. The GraphicItems collection is 1-based.

The index order of graphic items affects the stacking order for multiple graphic item callouts assigned to the same location. In addition, it determines which graphic item takes precedence in control over a cell in the Microsoft Visio ShapeSheet spreadsheet when conflicting conditions set by multiple graphic items are all true .

Note

Before you can set any property of a graphic item, you must use the Master.Open method to open a copy of the data graphic master that contains the graphic item for editing. When you are finished setting properties, use the Master.Close method to commit changes.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.