Skip to main content
A newer version of this page is available.
All docs
V19.1
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

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.1.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
)

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