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

THeaderSections

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

Implements a collection for section in a TCustomHeaderControl control.

Declaration

Source position: comctrls.pp line 3937

type THeaderSections = class(TCollection)

protected

  function GetOwner; override;

  

Gets the Owner of the class instance.

  procedure Update(); override;

  

Performs actions needed when a collection item has been changed.

public

  constructor Create();

  

Constructor for the class instance.

  function Add;

  

Creates a new header section and adds it to the collection.

  function AddItem();

  

Adds the specified header section at the position specified in Index.

  function Insert();

  

Inserts a new collection item at the specified position in the collection.

  procedure Delete();

  

Deletes the collection item stored at the specified position in the collection.

  property Items []: THeaderSection; default; [rw]

  

Items - the series of individual HeaderSections in the collection.

end;

Inheritance

THeaderSections

  

Implements a collection for section in a TCustomHeaderControl control.

|

TCollection

?

TObject

Description

THeaderSections is a TCollection descendant used to store sections defined for a TCustomHeaderControl instance. THeaderSections is the type used to implement the Sections property in TCustomHeaderControl.

THeaderSections re-implements methods from the ancestor class that are used to add, insert, delete, and retrieve THeaderSection instances stored in the collection.

See also

THeaderSection

  

Implements a section displayed on a TCustomHeaderControl / THeaderControl instance.

TCustomHeaderControl.Sections

  

Sections - the short segments of the header separated by vertical bars that function as the elementary selection units of the header.

TCollection

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