Sign in Join
FPDoc Onlineexperiment

TColumn.GetDefaultAlignment function

Member of TColumnprotectedIn unit DBGrids

Gets the default alignment for the Field in the column definition.

Declaration

pascal
function GetDefaultAlignment: TAlignment; override

Function result

Alignment for the Field and/or editor style.

Description

GetDefaultAlignment is an overridden TAlignment function that gets the default alignment for the Field in the column definition. GetDefaultAlignment gets the button style used by the default editor for Field. For check box and button-style editors, center alignment is used. Otherwise, the Alignment in Field is used. If Field has not been assigned, left alignment is used.

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