ContainingMaster property

Microsoft Visio Developer Reference

ContainingMaster property

   Example   

Returns the Master object that contains an object.

Version added

4.0

Syntax

objRet = object.ContainingMaster

objRet

The Master object that contains the object or collection.

object

Required. An expression that returns a Selection or Shape object, or Shapes collection to examine.

Remarks

If the object isn't in a Master object, the ContainingMaster property returns Nothing. For example, if a Shape object belongs to the Shapes collection of a Page object, the ContainingMaster property returns Nothing.