RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THeaderSections.Insert Method

Add new section object to collection.

Pascal
function Insert(Index: Integer): THeaderSection;
C++
__fastcall THeaderSection Insert(int Index);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!