Document.Container property (Visio)

Returns an IDispatch interface on the ActiveX container in which the document is contained or Nothing if the document is not in a container. Read-only.

Syntax

expression.Container

expression A variable that represents a Document object.

Return value

Object

Remarks

The interface returned is the result of querying the IOleContainer interface provided by the containing object for IDispatch.

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.