Back to Devexpress

Bookmark Interface

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-c89f553d.md

latest3.5 KB
Original Source

Bookmark Interface

Defines a bookmark in the document.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(true)]
public interface Bookmark
vb
<ComVisible(True)>
Public Interface Bookmark

The following members return Bookmark objects:

Remarks

A Bookmark exposes a document range with a name. A range can have zero length. The name should start with a letter, and must be unique in the collection of bookmarks in the current document. This collection is accessible with the SubDocument.Bookmarks property.

To create a new bookmark, use the BookmarkCollection.Create method. The BookmarkCollection.Select method is helpful if you want to select a bookmark. The BookmarkCollection.Remove method deletes the specified bookmark.

Apart from the Document methods, the XtraRichEdit provides several commands for bookmarks - the CreateBookmarkCommand and the ShowBookmarkFormCommand.

Bookmarks in the document can be referenced by a Hyperlink. The Hyperlink.Anchor property specifies the bookmark to which the hyperlink is pointing.

See Also

Bookmark Members

Bookmarks

Create

Select(Bookmark)

Remove(Bookmark)

CreateBookmarkCommand

ShowBookmarkFormCommand

DevExpress.XtraRichEdit.API.Native Namespace