A newer version of this page is available. Switch to the current version.

TreeList.StateImageList Property

Gets or sets the source of state images for nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

[DefaultValue(null)]
public object StateImageList { get; set; }

Property Value

Type Default Description
Object

null

An object which represents the source of state images.

Remarks

Nodes can display two images simultaneously. These are called select and state images.

veNodeImage

Use the StateImageList property to specify the source of state images. Certain state images are assigned to nodes by indexes (zero-based integer values referring to images in the StateImageList).

State image indexes can be specified in a number of ways:

  1. The TreeListNode.StateImageIndex property.
  2. The TreeList.GetStateImage event - Provides a flexible approach to provide state images to nodes.

The StateImageList property accepts the following image collections:

A click on a node’s select image fires the TreeList.SelectImageClick event.

See Also