Skip to main content

TreeList.ExpandToLevel(Int32) Method

Expands nodes up to the specified level.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public virtual void ExpandToLevel(
    int level
)

Parameters

Name Type Description
level Int32

An Int32 value that specifies the level up to which nodes should be expanded (0 corresponds to root nodes).

Remarks

Use the methods below to expand and collapse tree list nodes.

The control’s BeforeExpand, AfterExpand, BeforeCollapse, and AfterCollapse events fire during expand and collapse operations. For example, you can handle the BeforeExpand event to dynamically create child nodes in unbound mode.

See Also