Skip to main content
All docs
V24.1

TreeListNode.Expand(Boolean) Method

Expands the node.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public void Expand(
    bool animate = false
)

Optional Parameters

Name Type Default Description
animate Boolean False

true to expand the node with animation; otherwise, false.

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