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

GraphicItem.Tag Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets or sets a user-defined string expression that can store extra data related to your program. Read/write.

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

Syntax

expression . Tag

expression An expression that returns a GraphicItem object.

Return Value

String

Remarks

Microsoft Visio makes no use of the Tag property, nor does its value appear anywhere in the user interface. The Tag property is intended to be used by developers to store additional information about a graphic item or a data graphic.

For example, you can assign a Tag property value to a particular graphic item as an identifier. Then, by writing a procedure that iterates through the GraphicItems collection and looks for a graphic item that has that specific Tag value, you can find the graphic item.

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.

© 2018 Microsoft