Skip to content
Merged
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
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# 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 all checked nodes of WinForms TreeViewAdv?

## About Sample
This sample provides the demo on how to get the count for all checked nodes [WinForms TreeViewAdv](https://www.syncfusion.com/winforms-ui-controls/treeview).

You can get the count for all checked nodes in [WinForms TreeViewAdv](https://www.syncfusion.com/winforms-ui-controls/treeview) control by using [CheckedNodes](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeViewAdv.html#Syncfusion_Windows_Forms_Tools_TreeViewAdv_CheckedNodes) property. Refer the below code for your reference.

**C#**
```csharp
int checkedCount = treeView1.CheckedNodes.Count;
```

**VB.Net**
```csharp
Dim checkedCount As Integer = treeView1.CheckedNodes.Count
```

![count of checked nodes](output.png)

Take a moment to peruse the [WinForms TreeViewAdv - CheckBox](https://help.syncfusion.com/windowsforms/treeview/getting-started#checkbox) documentation, to learn more about checkbox with examples.

## Requirements to run the demo

Visual Studio 2015 and above versions