ContainingPageID Property [Visio 2003 SDK Documentation]
Returns the ID of the page that contains an object.
longRet = object**.ContainingPageID**
longRet Long. The ID of the Page object that contains the object or collection.
object Required. An expression that returns a Cell, Characters, Connect, Row, Section, Selection or Shape object to examine.
Version added
2003
Remarks
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.
Applies to | Cell object | Characters object | Connect object | Row object | Section object | Selection object | Shape object
See Also | ContainingPage property | Masters collection | Page object