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
parentItemTreeControlItemThe parent item to which the child item will be added. If null, the child item will be added to the root item.
childItemTreeControlItemThe child item to add.
selectItemboolIf true, the child item will be selected after being added.
Returns
- bool
true if the child item was successfully added; otherwise, false.