[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControlBorderSpacing.CellAlignHorizontal

The horizontal alignment of the associated Control when the control ChildSizing uses a tabular layout.

## Declaration

Source position: controls.pp line 880

`published property TControlBorderSpacing.CellAlignHorizontal : TControlCellAlign read FCellAlignHorizontal write SetCellAlignHorizontal default ccaFill;`

## Description

CellAlignHorizontal is a TControlCellAlign property which controls the horizontal alignment and sizing of the control when its Parent uses a tabular layout for child controls. The default value for the property is caFill and causes the control to be resized to horizontally fill the cell where the control is displayed.

See TControlCellAlign for more information about the values in the enumeration and their meanings.

Changing the value for the property causes the Change method to be called to recalculate the preferred size for the associated Control, and to signal the OnChange event handler (when assigned).

The value in CellAlignHorizontal is used when the AlignControls method in the associated Control is called.

## See also

TControlBorderSpacing.Control |  | The control where the border spacing values are applied.
TControlBorderSpacing.Change |  | Invalidates the control and signals the OnChange event handler.
TControlBorderSpacing.CellAlignVertical |  | The vertical alignment of the associated Control when the control ChildSizing uses a tabular layout.
TControlCellAlign |  | Modes for aligning a control in a table cell.
TWinControl.ChildSizing |  | Provides a grid (table) layout for the children of this control.
TWinControl.AlignControls |  | Repositions and resizes the control and child controls.