Back to Devexpress

TreeList.ExpandAll() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-f3c25c75.md

latest7.1 KB
Original Source

TreeList.ExpandAll() Method

Expands all Tree List nodes.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public virtual void ExpandAll()
vb
Public Overridable Sub ExpandAll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExpandAll() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L164

csharp
treeList.DataSource = new Object();
    treeList.ExpandAll();
}

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L152

csharp
treeList.DataSource = new Object();
    treeList.ExpandAll();
}

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L325

csharp
treeList.DataSource = new Object();
    treeList.ExpandAll();
}

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L431

csharp
treeList.DataSource = new Object();
    treeList.ExpandAll();
}

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L419

csharp
treeList.DataSource = new Object();
    treeList.ExpandAll();
}

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L159

vb
treeList.DataSource = New Object()
    treeList.ExpandAll()
End Sub

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L145

vb
treeList.DataSource = New Object()
    treeList.ExpandAll()
End Sub

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L327

vb
treeList.DataSource = New Object
    treeList.ExpandAll()
End Sub

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L423

vb
treeList.DataSource = New Object()
    treeList.ExpandAll()
End Sub

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L423

vb
treeList.DataSource = New Object
    treeList.ExpandAll()
End Sub

See Also

Expanded

ExpandAll()

CollapseAll()

ExpandToLevel(Int32)

CollapseToLevel(Int32)

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace