Skip to main content
A newer version of this page is available.
All docs
V19.1
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

SubDocument.CreateBookmark(DocumentRange, String) Method

OBSOLETE

This method has become obsolete. Use the 'Create' method instead.

Creates a bookmark for the specified range with the specified name and adds it to the SubDocument.Bookmarks collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.BookmarkCollection.Create(DocumentRange range, string name)' method instead.")]
Bookmark CreateBookmark(
    DocumentRange range,
    string name
)

Parameters

Name Type Description
range DocumentRange

A DocumentRange representing a portion of a document contained within the bookmark.

name String

A string specifying the bookmark name.

Returns

Type Description
Bookmark

A Bookmark object representing a bookmark in the current document.

Remarks

Bookmark names and ranges in the SubDocument.Bookmarks collection do not have to be unique, so repeated execution of the CreateBookmark method with the same parameters results in identical bookmarks being added.

See Also