RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.BoxRect Method

Returns the screen coordinates of a specified set of cells.

Pascal
function BoxRect(ALeft: Longint; ATop: Longint; ARight: Longint; ABottom: Longint): TRect;
C++
__fastcall TRect BoxRect(Longint ALeft, Longint ATop, Longint ARight, Longint ABottom);

Call BoxRect to obtain the screen coordinates, in pixels, of the cells that run from the column with index ALeft to the column with index ARight and the row with index ATop to the row with index ABottom. The coordinates of cells that are not visible onscreen are not included in the final rectangle. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!