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

TcxButtonImageOptions.ImageIndex Property

Specifies the button image from the Images collection.

#Declaration

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

#Property Value

Type
TcxImageIndex

#Remarks

Use this property to select the button image by its index within the Images collection. If the collection is not specified, the image is selected from the collection assigned to the Images property of the action linked to the button.

You can specify the image position relative to the caption and button edges and adjust it as required using the Layout, Margin, and Spacing properties.

Note

Unlike the Glyph property, the image selected via the ImageIndex property is displayed in any button state. The Glyph property and the ImageIndex property of the linked action override the ImageIndex property.

The default value of the ImageIndex property is -1.

See Also