Back to Devexpress

BeforeExpandEventArgs.CanExpand Property

windowsforms-devexpress-dot-xtratreelist-dot-beforeexpandeventargs.md

latest1.4 KB
Original Source

BeforeExpandEventArgs.CanExpand Property

Gets or sets whether a Tree List node can be expanded.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
Boolean

true if a Tree List node can be expanded; otherwise, false.

|

Remarks

If the CanExpand property is set to false , a node is not allowed to be expanded, and its child nodes will not be visible. The CanExpand property doesn’t affect the appearance of the node’s expand button.

See Also

BeforeExpandEventArgs Class

BeforeExpandEventArgs Members

DevExpress.XtraTreeList Namespace