Shape.ContainingPageID 属性 (Visio)Shape.ContainingPageID Property (Visio)

返回包含对象的页的 ID。Returns the ID of the page that contains an object. 只读。Read-only.

语法Syntax

expressionexpression. ContainingPageID

_表达式_代表Shape对象的变量。expression A variable that represents a Shape object.

返回值Return value

LongLong

说明Remarks

如果对象不在Page对象,则ContainingPageID属性返回-1。If the object is not in a Page object, the ContainingPageID property returns -1. 例如,如果Shape对象属于Masters集合,则ContainingPageID属性返回-1。For example, if a Shape object belongs to a Masters collection, the ContainingPageID property returns -1.