Document 类 (2007 system)

更新:2007 年 11 月

表示 Microsoft Office Word 的 Visual Studio Tools for Office 项目中的一个文档。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word.v9.0(在 Microsoft.Office.Tools.Word.v9.0.dll 中)

语法

声明
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class Document _
    Inherits EntryPointBindableComponentBase _
    Implements IActivatable, IServiceProviderCallback, IOfficeHostItemEntryPoint, IEntryPoint,  _
    ISupportInitializeControl, ISupportInitialize
用法
Dim instance As Document
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class Document : EntryPointBindableComponentBase, IActivatable, 
    IServiceProviderCallback, IOfficeHostItemEntryPoint, IEntryPoint, ISupportInitializeControl, ISupportInitialize

备注

Microsoft.Office.Tools.Word.Document 类是 Visual Studio Tools for Office 项目中的 Word 文档的宿主项。Microsoft.Office.Tools.Word.Document 类与 Word 主互操作程序集中的 Microsoft.Office.Interop.Word.Document 类可提供相同的成员,但前者还会添加下列功能:

有关更多信息,请参见宿主项和宿主控件概述文档宿主项

继承层次结构

System.Object
  Microsoft.VisualStudio.Tools.Office.RemoteComponent
    Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase
      Microsoft.VisualStudio.Tools.Office.EntryPointBindableComponentBase
        Microsoft.Office.Tools.Word.Document

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

Document 成员

Microsoft.Office.Tools.Word 命名空间

其他资源

宿主项和宿主控件概述

文档宿主项

在运行时向 Office 文档添加控件

智能标记概述

在运行时在应用程序级外接程序中扩展 Word 文档和 Excel 工作簿