[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a section displayed on a TCustomHeaderControl / THeaderControl instance.
Source position: comctrls.pp line 3889
type THeaderSection = class(TCollectionItem) |
||
protected |
||
function GetDisplayName; override; |
|
Gets the value for the DisplayName property. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
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 (i.e. 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 permissible width of a section. |
property MinWidth: Integer; [rw] |
|
Minimum permissible width of a section (default = 0). |
|
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] |
|
Indicates if the section is visible in the header control. |
property OriginalIndex: Integer; [r] |
|
OriginalIndex - index which doesn't change when the user reorders the sections. |
end; |
|
Implements a section displayed on a TCustomHeaderControl / THeaderControl instance. |
|
| | ||
TCollectionItem |
||
? | ||
TObject |
THeaderSection is a TCollectionItem descendant which implements a section displayed on a TCustomHeaderControl / THeaderControl instance. THeaderSection is the type added and maintained in the THeaderSections collection, and used in the TCustomHeaderControl.Sections property.
THeaderSection has properties which identify its visual characteristics. This includes the text displayed for the section, its alignment, minimum and maximum widths, and an index for an optional image. Other properties contain run-time information about the section, including its left and right coordinates and its display state.
THeaderSection instances are normally created at design-time and edited using the IDE object inspector. They can be created at run-time using methods in the THeaderSections collection, and edited in code.
|
Implements a collection for section in a TCustomHeaderControl control. |
|
|
Sections - the short segments of the header separated by vertical bars that function as the elementary selection units of the header. |