--- id: tgtktreeviewnode title: TGTKTreeViewNode sidebar_label: TGTKTreeViewNode --- A node in the tree view. ## Methods ### `Method RootNode:TGadget()` Returns the root node for this tree
### `Method InsertNode:TGadget(index:Int, Text:String, icon:Int)` Inserts a new node as a child at the specified index.
### `Method ModifyNode:Int(Text:String, icon:Int)` Changes the tree node text and icon
### `Method SelectedNode:TGadget()` Returns the currently selected tree node or null if none selected
### `Method CountKids:Int()` Returns the number of child nodes
### `Method GetText:String()` Returns the text for this node.
### `Method SetText:Int(Text:String)` Sets the text for this node.