Share via


DropDownTreeView.SelectedNode Property

Gets or sets the tree node that is currently selected in the TreeView control.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Property SelectedNode As TreeNode
    Get
    Set
'Usage
Dim instance As DropDownTreeView
Dim value As TreeNode

value = instance.SelectedNode

instance.SelectedNode = value
public TreeNode SelectedNode { get; set; }
public:
property TreeNode^ SelectedNode {
    TreeNode^ get ();
    void set (TreeNode^ value);
}
member SelectedNode : TreeNode with get, set
function get SelectedNode () : TreeNode
function set SelectedNode (value : TreeNode)

Property Value

Type: System.Windows.Forms.TreeNode
The TreeNode that is currently selected in the tree view control.