Share via


ContainingShape Property [Visio 2003 SDK Documentation]

Returns the Shape object that contains an object or collection.

objRet = object**.ContainingShape**

objRet     The Shape object that contains the object or collection.

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

Version added

4.0

Remarks

If the Shape object is the member of a group, the ContainingShape property returns that group.

If the Shape object is a top-level shape in its Page or Master object (it is not a member of a group), the ContainingShape property returns the page sheet of its page or master.

If the Shape object is the page sheet of a page or master, the ContainingShape property returns Nothing.

Applies to | Selection object | Shape object | Shapes collection

See Also | ContainingMaster property | ContainingPage property | PageSheet property | Shape object | Shapes property