BaseTreeView.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 we should call RebuildTree and RefreshItems or not. Set to false when doing multiple additions to save a few rebuilds.

Description

Adds an item to the existing tree.


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