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

# THeaderSection

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

THeaderSection - the individual sections of a THeaderControl, each of which can be used to control its own option, selection etc

## Declaration

Source position: comctrls.pp line 2841

`type THeaderSection = class(TCollectionItem)`
`protected`
`function GetDisplayName; override;`
`public`
`constructor Create(); override;` |  | - constructor for THeaderSection: calls inherited Create then initialises state, visibility, alignment, size and Index
`procedure Assign(); override;` |  | Assign - if Source is of correct type, copies properties directly, otherwise calls inherited Assign which probably raises an exception
`property Left: Integer; [r]` |  | The position of the left boundary of the section
`property Right: Integer; [r]` |  | The position of the right boundary of the section
`property State: THeaderSectionState; [rw]` |  | State - whether normal, hot (ie mouse hovers over it, ready to be selected) or pressed (selected)
`published`
`property Alignment: TAlignment; [rw]` |  | Alignment - whether text is to be left or right justified or centered
`property ImageIndex: TImageIndex; [rw]` |  | Index of the image in the imagelist
`property MaxWidth: Integer; [rw]` |  | Maximum permissable width of a section
`property MinWidth: Integer; [rw]` |  | Minimum permissable width of a section (default = 0)
`property Text: TCaption; [rw]` |  | The text string that is to appear in the section
`property Width: Integer; [rw]` |  | The Width of the section that appears on the THeaderControl
`property Visible: Boolean; [rw]` |  | Visible if True
`property OriginalIndex: Integer; [r]` |  | OriginalIndex - index which doesn't change when the user reorders the sections
`end;`

## Inheritance

`THeaderSection` |  | THeaderSection - the individual sections of a THeaderControl, each of which can be used to control its own option, selection etc
`TCollectionItem`
`TPersistent`
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.