.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Bookmark.Name Property

Gets the name of a bookmark in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

string Name { get; }
ReadOnly Property Name As String

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