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 TreeControlItem Add(string title)

Parameters

title string

The title of the item to add.

Returns

TreeControlItem

Remarks

This method creates a new TreeControlItem with the specified title and adds it to the root level of the tree view.

Add(TreeControlItem, bool)

Adds the specified item to the tree view on the root level.

public virtual bool Add(TreeControlItem item, bool selectItem = false)

Parameters

item TreeControlItem

The item to add.

selectItem bool

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

Returns

bool