Share via


_Document.Container Property

Returns the object that represents the container application for the specified OLE object.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property Container As Object
    Get
'Usage
Dim instance As _Document
Dim value As Object

value = instance.Container
Object Container { get; }

Property Value

Type: System.Object

Remarks

This property provides access to the specified document's container application if the document is embedded in another application as an OLE object.

The Container property also provides a pathway into the object model of the container application if a Word document is opened as an ActiveX document — for example, when a Word document is opened in Internet Explorer.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace