Skip to main content
.NET Framework 4.5.2+

BookmarkCollection.Create(DocumentPosition, Int32, String) Method

Creates a bookmark with the specified name for the range that starts at the specified position and has the specified length and adds it to the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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


Bookmark Create(
    DocumentPosition start,
    int length,
    string name


Name Type Description
start DocumentPosition

A DocumentPosition specifying the starting position for the bookmark.

length Int32

An integer specifying the length of the range contained in the bookmark.

name String

A string specifying the bookmark name.


Type Description

A Bookmark object specifying the created bookmark.


If the document already contains a bookmark with the specified name, an InvalidOperationException occurs. The BookmarkOptions.AllowNameResolution option is not applicable in this situation.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Create(DocumentPosition, Int32, String) method.


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