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.v18.2.Core.dll
Declaration
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.
Related GitHub Examples
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.