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

THeaderSection.Text

The text displayed on the header section.

Declaration

Source position: comctrls.pp line 3992

published property THeaderSection.Text : TCaption
  read FText
  write SetText;

Description

Text is a TCaption property which contains the textual value displayed on the header section. Along with the image specified in ImageIndex, it determines the content drawn for the section in the PaintSection method of the THeaderControl.

Changing the value for the property causes the collection item to be updated in its collection.

Use Alignment to set the horizontal alignment for the value in Text.

Use ImageIndex to specify the position for the image drawn on the header section.

Use Visible to indicate whether the header section is visible on the header control.

Use Width to specify the cumulative width for the image and text on the header section.

See also

THeaderSection.Alignment

  

Alignment - whether text is to be left or right justified or centered.

THeaderSection.ImageIndex

  

Ordinal position for the image displayed for the header section.

THeaderSection.Width

  

Total width in pixels for the text and image on the header section.

THeaderSection.MaxWidth

  

Maximum width in pixels allowed for the header section.

THeaderSection.MinWidth

  

Minimum width in pixels allowed for the header section.

THeaderSection.Visible

  

Indicates if the section is visible in the header control.

TCustomHeaderControl.PaintSection

  

Paints the specified header section to the Canvas for the control.

TCustomHeaderControl.Sections

  

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

TCollectionItem

TCollection


Version 4.0 Generated 2025-05-03 Home