|Top Previous Next|
Returns X and Y coordinates of the checkpoint (relative the top left corner of the document, i.e. top left corner of scrollable area)
procedure GetCheckpointXY(CheckpointData: TCheckpointData;
out X,Y: Integer);
You can use the returned Y to scroll document to this checkpoint.
These coordinates are the coordinates of the top left corner of the item which owns this checkpoint (for checkpoint at the bottom of the document the method returns (X=0, Y=DocumentHeight).
This method must be called only when the document is formatted.
See also methods:
TRichView © trichview.com