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

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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

Bookmark Create(
    DocumentPosition start,
    int length,
    string name
)

#Parameters

Name Type Description
start DocumentPosition

A DocumentPosition specifying the starting position for the bookmark.

length Int32

An integer that specifies the length of the range in the bookmark.

name String

A string that specifies the bookmark’s name.

#Returns

Type Description
Bookmark

A Bookmark object specifying the created bookmark.

#Exceptions

Type Description
InvalidOperationException

Occurs if the document already contains a bookmark with the specified name. The BookmarkOptions.AllowNameResolution option is not applicable in this situation

See Also