Skip to main content

TdxCustomLayoutItemCaptionOptions.ImageIndex Property

Specifies the caption’s image.

Declaration

property ImageIndex: Integer read; write; default -1;

Property Value

Type
Integer

Remarks

Use the ImageIndex property to specify an explanatory image for the caption, in addition to the descriptive text specified via the Text property.

This property automatically provides an appropriate image by its index from one of the image lists bound via the layout control’s OptionsImage.Images and OptionsImage.DisabledImages properties, dependant on the item’s enabled status (see the item’s Enabled property).

The ImageIndex property is in effect, if the following conditions are met:

  • The Visible property is True, and the VisibleElements property value includes the cveImage option.

  • The Glyph property is not specified.

The default value of the ImageIndex property is -1.

See Also