Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# How-to-count-checked-nodes-of-WF-TreeViewAdv
This respository contains the sample that how to count the checked nodes of WF TreeViewAdv control.
# How to count checked nodes of WinForms TreeViewAdv

This respository contains the sample that illustrate how to count the checked nodes of [WinForms TreeViewAdv](https://www.syncfusion.com/winforms-ui-controls/treeview) control.

You can get the count for all checked nodes in WinForms [TreeViewAdv](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeViewAdv.html) control by using [CheckedNodes](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeViewAdv.html#Syncfusion_Windows_Forms_Tools_TreeViewAdv_CheckedNodes) property. The `CheckedNodes` property retrieves the checked nodes of the `TreeViewAdv`, which is of type [CheckedNodesCollection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.CheckedNodesCollection.html). Refer the below code for your reference.

#### C#

``` csharp
int checkedCount = treeView1.CheckedNodes.Count;
```

#### VB

``` vb
Dim checkedCount As Integer = treeView1.CheckedNodes.Count
```

![How to count checked nodes of WinForms TreeViewAdv](https://www.syncfusion.com/uploads/user/kb/wf/wf-57845/wf-57845_img1.png)