Skip to main content

TdxCustomGalleryItem.ImageIndex Property

Specifies the item glyph by pointing to an image in the associated image list.

Declaration

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

Property Value

Type
TcxImageIndex

Remarks

Use the ImageIndex property to designate an image that should be displayed by this item. The image is specified by its index within the image list assigned to the TdxGalleryControl.Images property.

In order to use this property:

  1. Place an image list control onto a form;

  2. Populate it with images;

  3. Select the required gallery in the Object Inspector;

  4. Assign the list as shown below:

Now you can choose the item’s image in the gallery’s designer.

The default value of the ImageIndex property is -1.

See Also