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

# TCustomHeaderControl.CreateSections

Creates the collection used to store header sections defined for the control.

## Declaration

Source position: comctrls.pp line 4064

`protected function TCustomHeaderControl.CreateSections: THeaderSections; virtual;`

## Function result

THeaderSections instance created in the method.

## Description

CreateSections is called from the TCustomHeaderControl.Create constructor to allocate the collection used to store the Sections defined for the control.

## See also

TCustomHeaderControl.Sections |  | Sections - the short segments of the header separated by vertical bars that function as the elementary selection units of the header.
TCustomHeaderControl.Create |  | Constructor for the class instance.
THeaderSections.Create |  | Constructor for the class instance.
THeaderSection |  | Implements a section displayed on a TCustomHeaderControl / THeaderControl instance.