Skip to main content
.NET Framework 4.5.2+

Bookmark.Name Property

Gets the name of a bookmark in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v23.1.Core.dll

NuGet Package: DevExpress.RichEdit.Core


string Name { get; }

Property Value

Type Description

A string that is the unique bookmark’s name.


The bookmark name is used in the hyperlink as the Hyperlink.Anchor property value that, when the hyperlink is activated, the document location should navigate.

The Name should be unique in the SubDocument.Bookmarks collection. Specify the bookmark name when creating a bookmark using the BookmarkCollection.Create method or the CreateBookmarkCommand command. If the bookmark with the same name already exists, an exception is thrown in a situation when a bookmark is created using an API. If a bookmark is created by the end-user, a confirmation dialog appears displaying the text obtained from the XtraRichEditStringId.Msg_BookmarkCreationFailing resource string that reads “Bookmark with the same name already exists. Replace?”.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Name property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also