Skip to main content

BeforeExpandEventArgs.CanExpand Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public bool CanExpand { get; set; }

Property Value

Type Description
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