Table of Contents

Method SetSelected

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

SetSelected(TreeViewItem, bool)

Selects or clears the selection for the specified item.

public void SetSelected(TreeViewItem item, bool value)

Parameters

item TreeViewItem

The item to select or clear the selection for.

value bool

true to select the specified item; otherwise, false.

Remarks

You can use this method to set the selection of items in a multiple-selection tree control. To select an item in a single-selection tree control, use the SelectedItem property.