diff --git a/README.md b/README.md index a619e20..0d6bd60 100644 --- a/README.md +++ b/README.md @@ -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