Document.Container Property (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

expression .Container

expression A variable that represents a Document object.

Return Value


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