Skip to content

Commit c887f8b

Browse files
ES-975464 - Resolve the ReadMe issue in this sample repository
1 parent 744576b commit c887f8b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1-
# How-to-count-checked-nodes-of-WF-TreeViewAdv
2-
This respository contains the sample that how to count the checked nodes of WF TreeViewAdv control.
1+
# How to count checked nodes of WinForms TreeViewAdv
2+
3+
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.
4+
5+
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.
6+
7+
#### C#
8+
9+
``` csharp
10+
int checkedCount = treeView1.CheckedNodes.Count;
11+
```
12+
13+
#### VB
14+
15+
``` vb
16+
Dim checkedCount As Integer = treeView1.CheckedNodes.Count
17+
```
18+
19+
![How to count checked nodes of WinForms TreeViewAdv](https://www.syncfusion.com/uploads/user/kb/wf/wf-57845/wf-57845_img1.png)

0 commit comments

Comments
 (0)