Interface ITreeViewNode
- Namespace
- Myra.Graphics2D.UI
- Assembly
- Myra.dll
Represents a node in a tree view that can have child nodes.
public interface ITreeViewNode
Properties
ChildNodesCount
Gets the number of child nodes.
int ChildNodesCount { get; }
Property Value
Methods
AddSubNode(Widget)
Adds a sub-node with the specified content.
TreeViewNode AddSubNode(Widget content)
Parameters
contentWidgetThe widget to display as the sub-node's content.
Returns
- TreeViewNode
The newly added tree view node.
GetSubNode(int)
Gets the sub-node at the specified index.
TreeViewNode GetSubNode(int index)
Parameters
indexintThe zero-based index of the sub-node.
Returns
- TreeViewNode
The tree view node at the specified index.
RemoveAllSubNodes()
Removes all child nodes.
void RemoveAllSubNodes()