TreeListNode.StateImageIndex Property
Gets or sets the index of the node’s state image from the TreeList.StateImageList.
Namespace: DevExpress.XtraTreeList.Nodes
Assembly: DevExpress.XtraTreeList.v19.1.dll
Declaration
[DefaultValue(-1)]
[DXCategory("Appearance")]
[ImageList("StateImageList")]
public virtual int StateImageIndex { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value representing the node’s state image index. |
Remarks
The source of state images is specified by the TreeList.StateImageList property. Use the StateImageIndex property to associate certain state images from this list with nodes.
Image indexes provided by the StateImageIndex properties can be overridden by handling the TreeList.GetStateImage event.
If the image index is less than 0 or exceeds the last available index, no state image is painted for the node.
See TreeList.SelectImageList to learn more.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the StateImageIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.