Method Add
Add(string)
Adds a new item with the specified title to the tree view on the root level.
public virtual TreeViewItem Add(string title)
Parameters
titlestringThe title of the item to add.
Returns
Remarks
This method creates a new TreeViewItem with the specified title and adds it to the root level of the tree view.
Add(TreeViewItem, bool)
Adds the specified item to the tree view on the root level.
public virtual bool Add(TreeViewItem item, bool selectItem = false)
Parameters
itemTreeViewItemThe item to add.
selectItemboolIf true, the item will be selected after being added.