Back to Devexpress

IdxRichEditSubDocument.CreateBookmark(IdxRichEditDocumentRange,string) Method

vcl-dxrichedit-dot-nativeapi-dot-idxricheditsubdocument-dot-createbookmark-x28-dxrichedit-dot-nativeapi-dot-idxricheditdocumentrange-system-dot-string-x29.md

latest1.8 KB
Original Source

IdxRichEditSubDocument.CreateBookmark(IdxRichEditDocumentRange,string) Method

Creates a bookmark for the specified document range.

Declaration

delphi
function CreateBookmark(const ARange: IdxRichEditDocumentRange; const AName: string): IdxRichEditBookmark; overload;

Parameters

NameType
ARangeIdxRichEditDocumentRange
ANamestring

Returns

Type
IdxRichEditBookmark

Remarks

Call the CreateBookmark function to insert a new bookmark into the current document without accessing the bookmark collection by using the Bookmarks property. Pass the document range you need to mark and the bookmark name as the ARange and AName parameters, respectively.

The overloaded variant allows you to specify the bookmarked range by its starting position (the AStart parameter) and length in characters (the ALength parameter).

Note

Alternatively, you can invoke the Bookmarks.CreateBookmark function to achieve the same end.

See Also

IdxRichEditSubDocument Interface

IdxRichEditSubDocument Members

dxRichEdit.NativeApi Unit