Bookmark 类 (2007 system)

更新:2007 年 11 月

Bookmark 控件是一个具有唯一名称且可以公开事件的书签,可以绑定到数据。

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

语法

声明
<DefaultBindingPropertyAttribute("Text")> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class Bookmark _
    Inherits RemoteBindableComponent _
    Implements ISupportInitializeControl, ISupportInitialize
用法
Dim instance As Bookmark
[DefaultBindingPropertyAttribute("Text")]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class Bookmark : RemoteBindableComponent, 
    ISupportInitializeControl, ISupportInitialize

备注

使用 AddBookmark 方法可将书签添加到文档范围中。

继承层次结构

System.Object
  Microsoft.VisualStudio.Tools.Office.RemoteComponent
    Microsoft.VisualStudio.Tools.Office.RemoteBindableComponent
      Microsoft.Office.Tools.Word.Bookmark

线程安全

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

另请参见

参考

Bookmark 成员

Microsoft.Office.Tools.Word 命名空间