Table of Contents

Method AddChild

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

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

parentItem TreeControlItem

The parent item to which the child item will be added. If null, the child item will be added to the root item.

childItem TreeControlItem

The child item to add.

selectItem bool

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

Returns

bool

true if the child item was successfully added; otherwise, false.