Sign in Join
FPDoc Onlineexperiment

TGridColumn.GetDefaultColor function

Member of TGridColumnprotectedIn unit Grids

Gets the default value for the Color property.

Declaration

pascal
function GetDefaultColor: TColor; virtual

Function result

Default value for the Color property in the grid column.

Description

GetDefaultColor is a TColor function used to get the default value for the Color property in the grid column. The return value is set to the Color property in Grid, when it has been assigned. When Grid contains Nil, the value clWindow is used as the return value.

GetDefaultColor is called when reading the value for the Color property, and the property has not been assigned. It is also called when setting a new value in Color, and determines whether the property member is re-allocated for the new value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.