Table of Contents

Method Add

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

title string

The title of the item to add.

Returns

TreeViewItem

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

item TreeViewItem

The item to add.

selectItem bool

If true, the item will be selected after being added.

Returns

bool