SubDocument.CreateBookmark(DocumentPosition, Int32, String) Method
OBSOLETE
This method has become obsolete. Use the 'Create' method instead.
Creates a bookmark with the specified name for the range that starts at the specified position and has a specified length. Then, adds it to the SubDocument.Bookmarks collection.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v19.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
start | DocumentPosition | A DocumentPosition representing the starting position for the bookmark. |
length | Int32 | An integer specifying the length of a range contained in 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.