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

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


expressionexpression. ContainingPageID

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

返回值Return value



如果对象不在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.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.