TCustomGrid.GetAutoFillColumnInfo procedure
Gets auto-fill information for the specified column.
Declaration
procedure GetAutoFillColumnInfo(const Index: Integer;
var aMin: Integer; var aMax: Integer;
var aPriority: Integer); virtualArguments
Index | Position for the grid column examined in the method. |
aMin | Minimum size for the column. |
aMax | Maximum size for the column. |
aPriority | Sizing priority for the column. |
Description
GetAutoFillColumnInfo is a method used to get sizing information
for an auto-fill column specified in
Index.
AMin,
AMax, and
APriority are variable arguments updated with
the values for the requested column.
GetAutoFillColumnInfo calls ColumnFromGridColumn to get the
TGridColumn instance in Columns with the requested
values. If a column exists with the requested Index, its properties are
stored in the variable parameters. When Index is a fixed column in the grid,
the value in APriority is set to 0 (zero) which disables
auto-sizing for the column. If Columns has not been Enabled for the control,
or the column index is not valid, APriority is set to 1.
GetAutoFillColumnInfo is called when AutoFillColumns is set to True, and the column sizes are recalculated for the grid control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
