Back to Devexpress

CustomDrawNodeImagesEventArgs.SelectImageIndex Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawnodeimageseventargs.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public int SelectImageIndex { get; set; }
vb
Public Property SelectImageIndex As Integer

Property Value

TypeDescription
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

StateImageIndex

SelectImageIndex

SelectImageList

CustomDrawNodeImagesEventArgs Class

CustomDrawNodeImagesEventArgs Members

DevExpress.XtraTreeList Namespace