Skip to main content

TreeNode Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls

A node in a TreeView: a header plus optional child nodes.

public sealed class TreeNode

Constructors​

TreeNode(string header)​

public TreeNode(string header)

Creates a node with the given header.

Methods​

ArrayList()​

public readonly ArrayList Children = new ArrayList()

The child nodes.

Returns ArrayList Children = new

Add(TreeNode child)​

public TreeNode Add(TreeNode child)

Adds a child node.

Returns TreeNode

Fields​

public string Header

The text shown for this node.

IsExpanded​

public bool IsExpanded

Whether the node's children are shown.