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

CustomDrawNodeImagesEventArgs.SelectImageIndex Property

Gets or sets the index of the image displayed within the painted node when it is focused.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

public int SelectImageIndex { get; set; }

Property Value

Type Description
Int32

An integer value representing the zero-based index of the image displayed within the node when it is focused.

Remarks

Initially, the SelectImageIndex property contains the zero-based index of the image specified by the node’s TreeListNode.SelectImageIndex property. This property can be used in the following ways:

  • read the property value to paint the default image;
  • change the SelectImageIndex property value and leave the CustomDrawEventArgs.Handled property set to false. This forces the control to paint the node select image using the default mechanism but with another image.

Assigning values to this property has no effect in the following cases:

  • the control’s TreeList.SelectImageList property is a null reference;
  • the assigned value is less than zero or exceeds the available image index.
See Also