Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

BookmarkCollection.Create(DocumentRange, String) Method

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

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

Bookmark Create(
    DocumentRange range,
    string name
)

Parameters

Name Type Description
range DocumentRange

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

name String

A string specifying the bookmark name.

Returns

Type Description
Bookmark

A Bookmark object specifying the created bookmark.

Remarks

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(DocumentRange, String) method.

Note

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