Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Bookmark.Name Property

Gets the name of a bookmark in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

string Name { get; }

#Property Value

Type Description
String

A string that is the unique bookmark’s name.

#Remarks

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?”.

See Also