DefaultTreeViewController<T0>.AddItem

Declaration

public void AddItem(TreeViewItemData<T> item, int parentId, int childIndex, bool rebuildTree);

Parameters

item Item to add.
parentId The parent id for the item.
childIndex The child index in the parent's children list.
rebuildTree Whether the tree data should be rebuilt right away. Call <see cref="TreeViewController.RebuildTree()" /> when <c>false</c>.

Description

Adds an item to the tree.


Did you find this page useful? Please give it a rating: