Share via


GraphicItem.Index Property

Visio Automation Reference

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.

Aa342081.vs_note(en-us,office.12).gif  Note
This Visio object or member is available only to licensed users of Microsoft Office Visio Professional 2007.

Version Information
 Version Added:  Visio 2007

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 grpahic item callouts assigned to the same location. In addition, it determiones which graphic item takes precedence in control over a cell in the Microsoft Office Visio ShapeSheet spreadsheet when conflicting conditions set by multiple graphic items are all true .

Aa342081.vs_note(en-us,office.12).gif  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.

See Also