Share via


Master Property [Visio 2003 SDK Documentation]

As it applies to the Layer object, Layers collection, and Shape object.

Returns the master from which the Shape object was created, or returns the master that contains the Layer object or Layers collection.

objRet = object**.Master**

objRet    A Master object that represents the object's master.

object     Required. An expression that returns a Layer object, Layers collection, or Shape object.

Version added

2.0

Remarks

If the Shape object is not an instance of a master, its Master property returns Nothing.

If the Shape object is in a group, its Master property is the same as the group's Master property.

If the Layer object or Layers collection is from a page rather than a master, its Master property returns Nothing.

As it applies to the Window object.

Gets the master that is displayed in a window.

objRet = object**.Master**

objRet     Variant. An object that represents the master of object.

object     Required. An expression that returns a Window object.

Version added

2.0

Remarks

You can use the SubType property of the Window object to determine whether the Window object shows a master. If the Window object does not show a master, the Master property raises an exception.

If the Window object shows a master that is open for editing, the master returned is the temporary master being edited, not the original master that was opened for editing.

Applies to | Layer object | Layers collection | Shape object | Window object

See Also | Master object