AccordionControlElementBase.ImageIndex Property
Gets or sets the index of the image (in the AccordionControl.Images collection) displayed in the element header.
Namespace: DevExpress.XtraBars.Navigation
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Int32 | The index of the image displayed in the element header. |
Remarks
The ImageIndex property specifies the index of the required image in the image collection (AccordionControl.Images).
It’s also possible to assign an image to the element using the AccordionControlElementBase.Image property.
If images are specified via both the ImageIndex and Image properties, the image assigned to the Image property will be used.
By default, the auto-height feature is enabled for element headers. It adjusts the header height to accommodate the contents (image, text, custom control and context buttons) in their entirety. The AccordionControlElementBase.ImageLayoutMode property allows you to limit the image display height and specify the way the assigned image is scaled.