Back to Devexpress

TreeList.CustomDrawNodeIndent Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-be3b3112.md

latest2.2 KB
Original Source

TreeList.CustomDrawNodeIndent Event

Enables tree indents to be painted manually.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DXCategory("CustomDraw")]
public event CustomDrawNodeIndentEventHandler CustomDrawNodeIndent
vb
<DXCategory("CustomDraw")>
Public Event CustomDrawNodeIndent As CustomDrawNodeIndentEventHandler

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

Do not change cell values, modify the control’s layout, or change the control’s object model in the events used for custom control painting. Actions that update the layout can cause the control to malfunction.

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace