Skip to main content

SubDocument.CreateBookmark(DocumentPosition, Int32, String) Method

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

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.BookmarkCollection.Create(DocumentPosition start, int length, string name)' method instead.")]
Bookmark CreateBookmark(
    DocumentPosition start,
    int length,
    string name
)
<Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.BookmarkCollection.Create(DocumentPosition start, int length, string name)' method instead.")>
Function CreateBookmark(
    start As DocumentPosition,
    length As Integer,
    name As String
) As Bookmark

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.

See Also