Vcl.ComCtrls.THeaderSections.Insert

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Insert(Index: Integer): THeaderSection;

C++

HIDESBASE THeaderSection* __fastcall Insert(int Index);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls THeaderSections

Description

Add new section object to collection.

The Insert method creates a new section object and adds it the the collection. To determine the object type at runtime, define the header control's OnCreateSectionClass event handler. If this event handler is not defined, the new section object is an instance of THeaderSection.

The Index parameter determines the Index property of the panel object. If Index is negative, the panel object is added at the end of the collection.

Insert returns the new panel object.

See Also