TGridColumn.GetDefaultAlignment function
Gets the default value for the Alignment property.
Declaration
function GetDefaultAlignment: TAlignment; virtualFunction result
TAlignment instance with the default alignment for the grid column.
Description
GetDefaultAlignment is a
TAlignment function used to
get the default value for the
Alignment property in the grid
column.
GetDefaultAlignment uses the value in ButtonStyle to determine the
alignment needed for the grid column instance. When ButtonStyle contains
cbsCheckboxColumn or cbsButtonColumn, the alignment is
set to taCenter. Otherwise, the alignment is set to
taLeftJustify.
GetDefaultAlignment is called when reading the value for the Alignment property, and the value in the property member has not been assigned (contains Nil). It is also called when setting a new value in Alignment, and determines whether the property member needs to be re-allocated for the modified value.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
