Method AddChild
AddChild(TreeControlItem?, TreeControlItem, bool)
Adds a child item to the specified parent item in the tree view.
public virtual bool AddChild(TreeControlItem? parentItem, TreeControlItem childItem, bool selectItem = false)
Parameters
parentItem
TreeControlItemThe parent item to which the child item will be added. If null, the child item will be added to the root item.
childItem
TreeControlItemThe child item to add.
selectItem
boolIf true, the child item will be selected after being added.
Returns
- bool
true if the child item was successfully added; otherwise, false.