[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets the default value for the Alignment property.
Source position: grids.pas line 574
protected function TGridColumn.GetDefaultAlignment: TAlignment; virtual; |
TAlignment instance with the default alignment for the grid column.
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.
|
Whether the column is justified, centered, etc. |
|
|
The style used for a button displayed in the column. |