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

THeaderSection.Alignment

Alignment - whether text is to be left or right justified or centered.

Declaration

Source position: comctrls.pp line 3988

published property THeaderSection.Alignment : TAlignment
  read FAlignment
  write SetAlignment
  default taLeftJustify;

Description

Alignment is a TAlignment property which indicates the horizontal alignment used to display the Text for the header section. The default value for the property is taLeftJustify. See TAlignment for the values allowed in the property.

Changing the value for the property causes the Changed method to be called to update the item in its collection.

Alignment is used in the PaintSection method in TCustomHeaderControl when the image, text, and drawing state are used to render the section on the control canvas.

See also

THeaderSection.Text

  

The text displayed on the header section.

THeaderSection.ImageIndex

  

Ordinal position for the image displayed for the header section.

THeaderSection.State

  

State - whether normal, hot (i.e. mouse hovers over it ready to be selected) or pressed (selected).

THeaderSection.Create

  

Constructor for the class instance.

TCustomHeaderControl.PaintSection

  

Paints the specified header section to the Canvas for the control.

TCustomHeaderControl.Paint

  

Draws the control to its Canvas using highlighting, drag images, and theme details.

TAlignment


Version 4.0 Generated 2025-05-03 Home