TreeListColumn.ImageIndex Property

Gets or sets the index of the image from the TreeList.ColumnsImageList collection displayed in the column header.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

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

Property Value

Type Default Description
Int32

-1

An integer value specifying the image by its zero-based index in the source collection. -1 to not display an image.

Remarks

To display images within column headers, first assign an image list to the TreeList.ColumnsImageList property. Then use a column's ImageIndex property to assign the index of the required image within this list.

You can also use the TreeListColumn.Image property to provide the column header image.

See Also