{"blog_title":"ktts\u2019s blog","published":"2020-01-30 23:58:47","description":"You could easily make this into an extension methods like this. public static class ExtensionMethods { public static bool AllLeavesChecked(this TreeNode treeNode) { if (treeNode.Nodes.Count == 0) { return treeNode.Checked; } else { bool returns = true; foreach (TreeNode node in treeNode.Nodes) { ret\u2026","provider_url":"https://hatena.blog","blog_url":"https://ktts.hatenablog.com/","title":".NET C# - How to check if all leaves are in WinForms TreeView.","author_name":"ktts","image_url":null,"provider_name":"Hatena Blog","version":"1.0","categories":["C#"],"width":"100%","author_url":"https://blog.hatena.ne.jp/ktts/","url":"https://ktts.hatenablog.com/entry/2020/01/30/235847","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fktts.hatenablog.com%2Fentry%2F2020%2F01%2F30%2F235847\" title=\".NET C# - How to check if all leaves are in WinForms TreeView. - ktts\u2019s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","type":"rich"}