Skip to main content

CustomDrawNodeIndicatorEventArgs.ImageIndex Property

Gets or sets the index of an image to be painted in the indicator cell.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v23.2.dll

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

Declaration

public int ImageIndex { get; set; }

Property Value

Type Description
Int32

The index of an image to be painted in the indicator cell. -1 if no image is displayed.

Remarks

An indicator cell can display one of three predefined images according to a node’s edit state. These images are accessible from the TreeListPainter.IndicatorImages collection. The ImageIndex property specifies the displayed image by its index. Supported image indexes are shown in the table below.

Image Index Node Edit State
-1 Not focused.
TreeListPainter.EditorIsInactiveIndicatorImageIndex constant A node is not being edited.
TreeListPainter.EditorIsActiveIndicatorImageIndex constant The focused cell’s editor is active, but the editor’s value has not been changed yet.
TreeListPainter.EditorIsModifiedIndicatorImageIndex constant The editor’s value has been changed, but the editor hasn’t been closed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageIndex 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.

See Also