TreeList.CustomDrawNodeIndent Event
Enables tree indents to be painted manually.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v19.2.dll
Declaration
[DXCategory("CustomDraw")]
public event CustomDrawNodeIndentEventHandler CustomDrawNodeIndent
Event Data
The CustomDrawNodeIndent event's data class is DevExpress.XtraTreeList.CustomDrawNodeIndentEventArgs.
Remarks
The CustomDrawNodeIndent event is raised before a tree indent is painted. It enables you to paint the tree indent manually or change its settings before it is painted by the default painting mechanism. See the Custom Draw Scenarios topic for information on using custom draw events.
The CustomDrawNodeIndent event is not raised when the TreeListOptionsView.ShowIndentAsRowStyle property is set to true.
Important
Never change cell values or modify the control’s layout on this event, or any other event designed to tune the control’s appearance. Any action that causes a layout update can cause the control to malfunction.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomDrawNodeIndent event.
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.