windowsforms-devexpress-dot-xtratreelist-dot-treelist-c10c0c90.md
Checks all TreeList nodes.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
public void CheckAll()
Public Sub CheckAll
TreeList nodes can display radio buttons instead of regular check boxes. Radio buttons are mutually exclusive options.
If any radio button is checked and you select another sibling radio button, the former radio button is automatically deactivated.
The CheckAll method’s behavior is as follows when nodes display radio buttons:
If no radio button is checked at a specific tree level, TreeList checks the first radio button and all its children.
If any radio button is checked at a specific tree level, TreeList retains the checked state for this button and then checks all its children.
To check a specific tree node (and optionally its children), use the TreeList.SetNodeCheckState method.
See Node Checking - Checkboxes and Radio Buttons to learn more.
See Also