Skip to content

UITreeNode.Add Method

Definition

Namespace: Brine2D.UI

Overloads
Add\(UITreeNode\) Adds a pre-built child node and returns this.
Add\(string, object, bool\) Adds a child node with the specified text and returns this to allow fluent chaining.

UITreeNode.Add\(UITreeNode\) Method

Adds a pre-built child node and returns this.

C#
public Brine2D.UI.UITreeNode Add(Brine2D.UI.UITreeNode child);

Parameters

child UITreeNode

Returns

UITreeNode

UITreeNode.Add\(string, object, bool\) Method

Adds a child node with the specified text and returns this to allow fluent chaining.

C#
public Brine2D.UI.UITreeNode Add(string text, object? tag=null, bool isExpanded=false);

Parameters

text System.String

tag System.Object

isExpanded System.Boolean

Returns

UITreeNode