SubDocument.CreateBookmark(DocumentRange, String) Method
Obsolete. Creates a bookmark for the specified range with the specified name and adds it to the SubDocument.Bookmarks collection.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v14.2.Core.dll
Declaration
[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.BookmarkCollection.Create(DocumentRange range, string name)' method instead.")]
Bookmark CreateBookmark(
DocumentRange range,
string name
)
<Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.BookmarkCollection.Create(DocumentRange range, string name)' method instead.")>
Function CreateBookmark(
range As DocumentRange,
name As String
) As Bookmark
Parameters
Name | Type | Description |
---|---|---|
range | DocumentRange | A DocumentRange representing a portion of a document contained within 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.
See Also