Skip to main content

TcxButtonImageOptions.ImageIndex Property

Specifies the button image from the Images collection.

Declaration

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