Table of Contents

Method SetSelectedItem

Namespace
Alternet.Common.Wpf
Assembly
Alternet.Common.Wpf.v10.dll

SetSelectedItem(TreeView, object)

Selects specified tree view item. Clears the previoues selection if necessary.

public static bool SetSelectedItem(TreeView treeView, object item)

Parameters

treeView TreeView

TreeView to process.

item object

Item to be selected.

Returns

bool

True if succeeds; otherwise, false.