Container property

Microsoft Visio Developer Reference

Container property

See also   Example   

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

Version added

2000

Syntax

objRet = object.Container

objRet

An IDispatch on the container.

object

Required. An expression that returns a Document object.

Remarks

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