Sign in Join
FPDoc Onlineexperiment

TGridColumnTitle.ImageIndex property

Member of TGridColumnTitlepublishedIn unit Grids

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.