Skip to main content
A newer version of this page is available. .

LayoutControlItem.ImageIndex Property

Gets or sets the index of the image assigned to the item.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
[DefaultValue(-1)]
public virtual int ImageIndex { get; set; }

Property Value

Type Default Description
Int32 -1

An integer which specifies the index of the item’s image in a collection of images.

Remarks

This property allows you to specify the image to display within the layout item’s caption by its index in an image collection. The ImageIndex property specifies the index of the required image in a collection of images. In a LayoutControl, the source of images is specified by the LayoutControl.Images property. In a LayoutView (Grid Control), the source of images is specified by the ColumnView.Images property.

It’s also possible to explicitly assign an image to the item using the LayoutControlItem.Image property. If images are specified via both the ImageIndex and Image properties, the image assigned to the Image property will be used.

See Also