title: WinForms TreeView: check if Checkbox is hidden
body: <p>I am using the following solution to show or hide checkboxes in a TreeView:</p>
  
  <p><a href="https://stackoverflow.com/a/22230299/1583649">https://stackoverflow.com/a/22230299/1583649</a></p>
  
  <p>However, now i would like to know how to check if the checkbox is hidden or not for the node.</p>
  
  <p>For example, i want to be able to set checkbox.checked to true (or false) on only the children of a top-level node that have a checkbox visible when the top-level node is checked. Is there a way to do this?</p>