TreeView.SelectionMode Property

Definition

Gets or sets the selection behavior for a TreeView instance.

public:
 property TreeViewSelectionMode SelectionMode { TreeViewSelectionMode get(); void set(TreeViewSelectionMode value); };
TreeViewSelectionMode SelectionMode();

void SelectionMode(TreeViewSelectionMode value);
public TreeViewSelectionMode SelectionMode { get; set; }
var treeViewSelectionMode = treeView.selectionMode;
treeView.selectionMode = treeViewSelectionMode;
Public Property SelectionMode As TreeViewSelectionMode

Property Value

TreeViewSelectionMode

An enumeration value that specifies the selection behavior for a TreeView. The default is Single selection.

Applies to