Thetype exposes the following members.
Gets the node that represents the end of the bookmark.
Gets the node that represents the start of the bookmark.
Gets or sets the name of the bookmark.
Gets or sets the text enclosed in the bookmark.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Removes the bookmark from the document. Does not remove text inside the bookmark.
Returns a string that represents the current object.(Inherited from Object.)
[C#] Document doc = new Document(MyDir + "Bookmark.doc"); // Use the indexer of the Bookmarks collection to obtain the desired bookmark. Bookmark bookmark = doc.Range.Bookmarks["MyBookmark"]; // Get the name and text of the bookmark. string name = bookmark.Name; string text = bookmark.Text; // Set the name and text of the bookmark. bookmark.Name = "RenamedBookmark"; bookmark.Text = "This is a new bookmarked text.";