Upravit

Sdílet prostřednictvím


Selection.ContainingShape property (Visio)

Returns the Shape object that contains an object or collection. Read-only.

Syntax

expression. ContainingShape

expression A variable that represents a Selection object.

Return value

Shape

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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.