Method PrependWithText
PrependWithText(string)
Creates a new TreeViewItem, assigns text to it, adds it as the first child of this item in the tree, and returns it.
public virtual TreeViewItem PrependWithText(string text)
Parameters
textstringThe text to assign to the item.
Returns
- TreeViewItem
The newly created TreeViewItem with the specified text, added as the first child of this item in the tree.