.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

BookmarkCollection.Create(DocumentPosition, Int32, String) Method

Creates a bookmark with the specified name for the range that starts at the specified position and has the specified length and adds it to the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.1.Core.dll

Declaration

Bookmark Create(
    DocumentPosition start,
    int length,
    string name
)
Function Create(
    start As DocumentPosition,
    length As Integer,
    name As String
) As Bookmark

Parameters

Name Type Description
start DocumentPosition

A DocumentPosition specifying the starting position for the bookmark.

length Int32

An integer specifying the length of the range contained in 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.

See Also