Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomGalleryItem.ImageIndex Property

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

#Declaration

Delphi
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