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

TGridColumnTitle.ImageIndex

Ordinal position for the image displayed in the fixed header for the column title.

Declaration

Source position: grids.pas line 506

published property TGridColumnTitle.ImageIndex : TImageIndex
  read FImageIndex
  write SetImageIndex
  default - 1;

Description

ImageIndex is a TImageIndex property which contains the ordinal position for the image displayed in the column title. It indicates the position in the TitleImageList property on a grid control where the image is stored. The default value for the property is -1 and indicates that an explicit value has not been assigned, or that an image is not used in the fixed header for the column.

Changing the value for the property causes the ColumnChanged method in Column to be called. This updates the collection item in the grid control where the column is defined, and resets the value in the WidthChanged property in Column.

Use ImageLayout to control the position for the image relative to the caption text displayed in the column header.

See also

TGridColumnTitle.Column

  

The TGridColumn instance where the title is used.

TGridColumnTitle.ImageLayout

  

The layout used for any image in the column title.

TGridColumn.Grid

  

The grid control to which this column belongs.

TGridColumn.ColumnChanged

  

Performs actions needed when a column in the grid is changed.

TGridColumn.WidthChanged

  

True when the width for the column has been changed.

TCustomGrid.TitleImageList

  

The list with images displayed in column titles.

TImageIndex

  

Type used for an image list index (integer).


Version 4.0 Generated 2025-05-03 Home