TreeView.SelectionMode Property


Gets or sets the selection behavior for a TreeView instance.

 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


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

Applies to