Back to Devexpress

CustomDrawNodeButtonEventArgs.AllowDrawBackground Property

windowsforms-devexpress-dot-xtratreelist-dot-customdrawnodebuttoneventargs.md

latest2.0 KB
Original Source

CustomDrawNodeButtonEventArgs.AllowDrawBackground Property

Gets or sets whether to draw a background that detaches the button from the tree hierarchy lines.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public bool AllowDrawBackground { get; set; }
vb
Public Property AllowDrawBackground As Boolean

Property Value

TypeDescription
Boolean

true , to draw a background that detaches the button from the tree hierarchy lines; otherwise, false.

|

Remarks

If the TreeListOptionsView.ShowTreeLines option is enabled, the TreeList control displays lines indicating node tree hierarchy.

By default, node expand/collapse buttons are drawn on a background that detaches the buttons from the tree lines. You can hide this background by setting the AllowDrawBackground property to false.

See Also

ShowTreeLines

CustomDrawNodeButtonEventArgs Class

CustomDrawNodeButtonEventArgs Members

DevExpress.XtraTreeList Namespace