TreeView.SelectedNodes Property

Definition

Gets or sets the collection of nodes that are selected in the tree.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property IVector<TreeViewNode ^> ^ SelectedNodes { IVector<TreeViewNode ^> ^ get(); };
IVector<TreeViewNode> SelectedNodes();
public IList<TreeViewNode> SelectedNodes { get; }
Public ReadOnly Property SelectedNodes As IList(Of TreeViewNode)

Property Value

The collection of nodes that are selected in the tree. The default is an empty collection.

Applies to