MasterShape property

Microsoft Visio Developer Reference

MasterShape property

See also   Example   

Returns the shape in the master that this shape inherits from if this shape is part of a master instance.

Version added

2002

Syntax

objRet = object.MasterShape

objRet

The Shape object in the master that this object inherits from.

object

Required. An expression that returns a Shape object that is part of a master instance.

Remarks

Each shape in an instance of a master (the group and all of its subshapes) point to their corresponding shape in the master. The MasterShape property returns the Shape object in the master from which object inherits.

If object is not part of a master instance, the MasterShape property returns Nothing.