Skip to main content

Bookmark.Name Property

Gets the name of a bookmark in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

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