Vcl.Grids.TCustomGrid.AdjustSize
Delphi
procedure AdjustSize(Index, Amount: Longint; Rows: Boolean); reintroduce; dynamic;
C++
HIDESBASEDYNAMIC void __fastcall AdjustSize(int Index, int Amount, bool Rows);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
Description
Adds or deletes rows or columns from the grid.
Grid components call AdjustSize internally to fix up the number of rows or columns when the user resizes them using the mouse. Index is the index of the row or column where the insertion or deletion should begin. Amount is the number of rows or columns to insert (Amount > 0) or delete (Amount < 0). Rows is a boolean that indicates whether the rows or the columns are changing.