Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditBookmarkCollection.CreateBookmark(IdxRichEditDocumentPosition,Integer,string) Method

Creates a bookmark for the specified document range.

#Declaration

Delphi
function CreateBookmark(const AStart: IdxRichEditDocumentPosition; ALength: Integer; const AName: string): IdxRichEditBookmark; overload;

#Parameters

Name Type
AStart IdxRichEditDocumentPosition
ALength Integer
AName string

#Returns

Type
IdxRichEditBookmark

#Remarks

Call this function to add a new bookmark to the collection. 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 CreateBookmark function exposed by the IdxRichEditSubDocument interface and its descendants to achieve the same end.

See Also