Back to Devexpress

TreeList.CheckAll() Method

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

latest2.0 KB
Original Source

TreeList.CheckAll() Method

Checks all TreeList nodes.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public void CheckAll()
vb
Public Sub CheckAll

Remarks

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

Node Checking - Checkboxes and Radio Buttons

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace