LayoutControlItem.ImageIndex Property

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
[DefaultValue(-1)]
public virtual int ImageIndex { get; set; }
<Browsable(False)>
<DXCategory("Appearance")>
<XtraSerializableProperty>
<DefaultValue(-1)>
Public Overridable Property ImageIndex As Integer

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