Share via


ContainingMasterID Property [Visio 2003 SDK Documentation]

Returns the ID of the Master object that contains an object.

longRet = object.ContainingMasterID

longRet    Long. The ID of the Master object that contains the object or collection.

object    Required. An expression that returns a Cell, Characters, Connect, Row, Section, Selection or Shape object.

Version added

2003

Remarks

If the object is not in a Master object, the ContainingMasterID property returns -1. For example, if a Shape object belongs to the Shapes collection of a Page object, the ContainingMasterID property returns -1.

Applies to | Cell object | Characters object | Connect object | Row object | Section object | Selection object | Shape object

See Also | ContainingMaster property | Master object | Page object | Shapes collection