Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ContainingPageID Property

Selection.ContainingPageID Property (Visio)

Returns the ID of the page that contains an object. Read-only.

Version Added: Visio 2003

expression .ContainingPageID

expression A variable that represents a Selection object.

Return Value


If the object is not in a Page object, the ContainingPageID property returns -1. For example, if a Shape object belongs to a Masters collection, the ContainingPageID property returns -1.

© 2015 Microsoft