TGridRect specifies a set of cells that occupy a rectangular region in a grid control.
TGridRect = record case Integer of 0: (Bottom: Longint; Left: Longint; Right: Longint; Top: Longint;); 1: (BottomRight: TGridCoord; TopLeft: TGridCoord;); end;
struct TGridRect { Longint Bottom; Longint Left; Longint Right; Longint Top; TGridCoord BottomRight; TGridCoord TopLeft; };
Grids
TGridRect indicates a rectangular set of cells from the grid in one of two ways:
Using the first method, TopLeft indicates the coordinates of the top-left cell in the set and BottomRight indicates the coordinates of the bottom-right cell.
Using the second method, Left indicates the first column in the set and Right the last column in the set, where 0 is the first column of the grid, 1 is the second column, and so on. Top indicates the first row in the set and Bottom the last row, where 0 is the first row of the grid, 1 the second column, and so on.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|