Method group is Obsolete

TreeView.FindItem

Obsolete TreeView is now deprecated. You can likely now use TreeView<int> instead and not think more about it. But if you were using that identifier to store InstanceID data, you should instead opt to upgrade your TreeViews to use TreeView<InstanceID> to get the proper typing.

Declaration

protected TreeViewItem FindItem(int id, TreeViewItem searchFromThisItem);

Parameters

Parameter Description
id Find the TreeViewItem with this ID.
searchFromThisItem Sets the search to start from an item. Use 'rootItem' to search the entire tree.

Returns

TreeViewItem This search method returns the TreeViewItem found and returns null if not found.

Description

Finds a TreeViewItem by an ID.

Set the searchFromThisItem parameter to 'rootItem' to search the entire tree.


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