_Document.Container 属性

定义

返回包含指定 OLE 对象的容器应用程序的对象。Returns the object that represents the container application for the specified OLE object.

public:
 property System::Object ^ Container { System::Object ^ get(); };
public object Container { get; }
member this.Container : obj
Public ReadOnly Property Container As Object

属性值

Object

注解

如果文档作为 OLE 对象嵌入到另一个应用程序中,则此属性可提供对指定文档的容器应用程序的访问权限。This property provides access to the specified document's container application if the document is embedded in another application as an OLE object.

如果 Word 文档作为 ActiveX 文档打开(例如,在 Internet Explorer 中打开 Word 文档时),则container属性还会将一个通道提供给容器应用程序的对象模型。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.

适用于