HasNodes Property

Returns true if there is a least 1 child node in this node's Nodes collection. Please see the remarks below for important details regarding data binding situations.
Public ReadOnly Property HasNodes As Boolean
public bool HasNodes {get;}
When the WinTree control is bound to a DataSource, the HasNodes property will be False until some or all of the child nodes in the underlying data have been dynamically loaded into the control. Child nodes are dynamically loaded only when needed, for example when the parent node is expanded, or when program code calls for them (e.g., getting theCount property of the Nodes collection). Unlike the scenarios above, checking the HasNodes property does not load the collection of child nodes.

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also