Table of Contents

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

int

Methods

AddSubNode(Widget)

Adds a sub-node with the specified content.

TreeViewNode AddSubNode(Widget content)

Parameters

content Widget

The 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

index int

The zero-based index of the sub-node.

Returns

TreeViewNode

The tree view node at the specified index.

RemoveAllSubNodes()

Removes all child nodes.

void RemoveAllSubNodes()