Share via


Page.ID Property

Visio Automation Reference

Gets the ID of an object. Read-only.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.ID

expression   A variable that represents a Page object.

Return Value
Long

Remarks

The ID of a shape is unique only within the scope of the page or master. The ID of a page, master, or style is unique within the scope of the document.

If a shape, page, master, or style is deleted, future objects in the same scope may be assigned the same ID. Therefore, persisting shape or style IDs in separate data stores is generally not as sound as persisting unique IDs using the UniqueID property.

See Also