rvico TRichView Reference | TRichView

TCustomRichView.GetItemCoords

Top  Previous  Next

Returns coordinates of the item in RichView document.

function GetItemCoords(ItemNo: Integer;

  var Left,Top: Integer): Boolean;

(introduced in version 1.4)

 

Input parameter:

ItemNo – index of item. Items are indexed from 0 to ItemCount-1. Items of subdocuments (table cells) are not included in the items range of the main document.

 

Output parameters:

Left,Top – coordinates of the top left corner of the item, pixels. (0,0) is in top left corner of scrollable area of the document.

 

This method must be called only when the document is formatted.

 

Return value:

True if coordinates were successfully retrieved (document must be formatted)

 

See also:

GetItemClientCoords;
ClientToDocument.

See also methods of TCustomRVFormattedData

GetOriginEx.


RichView © Sergey Tkachenko