rvico TRichView Reference | TRichView

TCustomRichView.GetItemClientCoords

Top  Previous  Next

Returns coordinates of the item in RichView window.

function GetItemClientCoords(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, in pixels. (0,0) is in the top left corner of client area of the control window.

 

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:

GetItemCoords;
ClientToDocument.


RichView © Sergey Tkachenko