Vcl.Grids.TGridRect
Delphi
TGridRect = record
case Integer of
0: (Left, Top, Right, Bottom: Longint);
1: (TopLeft, BottomRight: TGridCoord);
end;
C++
struct DECLSPEC_DRECORD TGridRect
{
public:
union
{
struct
{
TGridCoord TopLeft;
TGridCoord BottomRight;
};
struct
{
int Left;
int Top;
int Right;
int Bottom;
};
};
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | Vcl.Grids |
Description
TGridRect specifies a set of cells that occupy a rectangular region in a grid control.
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.