Dela via


Bookmark Class (2007 System)

The Bookmark control is a bookmark that has a unique name, exposes events, and can be bound to data.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<DefaultBindingPropertyAttribute("Text")> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class Bookmark _
    Inherits RemoteBindableComponent _
    Implements ISupportInitializeControl, ISupportInitialize
'Usage
Dim instance As Bookmark
[DefaultBindingPropertyAttribute("Text")]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class Bookmark : RemoteBindableComponent, 
    ISupportInitializeControl, ISupportInitialize
[DefaultBindingPropertyAttribute(L"Text")]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class Bookmark sealed : public RemoteBindableComponent, 
    ISupportInitializeControl, ISupportInitialize
public final class Bookmark extends RemoteBindableComponent implements ISupportInitializeControl, ISupportInitialize

Remarks

Use the AddBookmark method to add a bookmark to a document range.

Inheritance Hierarchy

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Bookmark Members

Microsoft.Office.Tools.Word Namespace