24 writes to SelectedNode
System.Windows.Forms (6)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1442
tv.
SelectedNode
= this;
1803
TreeView.
SelectedNode
= node; // communicate this to the handle
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
106
_owningTreeView.
SelectedNode
= _owningTreeNode;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
345
tv.
SelectedNode
= node; // communicate this to the handle
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1965
SelectedNode
= savedSelectedNode;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
320
_selector.
SelectedNode
= _selector.Nodes[_initialActivePage];
System.Windows.Forms.Design (8)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
155
SelectedNode
= treeNodes[i];
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1822
_treeViewCtrl!.
SelectedNode
= node;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (6)
172
_treeView1.
SelectedNode
= parent;
176
_treeView1.
SelectedNode
= newNode;
440
_treeView1.
SelectedNode
= nodes[0];
579
_treeView1.
SelectedNode
= currentNode;
651
_treeView1.
SelectedNode
= tempNode;
685
_treeView1.
SelectedNode
= tempNode;
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
218
control.
SelectedNode
= control.Nodes[1];
System\Windows\Forms\TreeViewTests.cs (9)
5784
control.
SelectedNode
= node;
6030
control.
SelectedNode
= node;
6111
control.
SelectedNode
= node;
6226
control.
SelectedNode
= node;
6835
treeView.
SelectedNode
= treeView.Nodes[0];
6861
treeView.
SelectedNode
= treeView.Nodes[0];
6898
treeView.
SelectedNode
= treeNode.Nodes[0];
6927
treeView.
SelectedNode
= treeNode.Nodes[0];
6964
treeView.
SelectedNode
= treeNode.Nodes[0];
37 references to SelectedNode
System.Windows.Forms (11)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1427
if (tv.
SelectedNode
== _children[i])
System\Windows\Forms\Controls\TreeView\TreeView.cs (9)
2025
_selectedNode =
SelectedNode
;
2073
NotifyAboutLostFocus(
SelectedNode
);
2259
TreeNode? node =
SelectedNode
;
2503
NotifyAboutLostFocus(
SelectedNode
);
3091
NotifyAboutGotFocus(
SelectedNode
);
3096
SelectedNode
?.AccessibilityObject?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
3103
NotifyAboutLostFocus(
SelectedNode
);
3427
TreeNode? treeNode =
SelectedNode
;
3455
SelectedNode
?.AccessibilityObject?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
382
int newPage = _selector.
SelectedNode
!.Index;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (3)
63
_editor.SetValue(((SelectorNode)
SelectedNode
!).value);
64
if (_editor.EqualsToValue(((SelectorNode)
SelectedNode
).value))
130
if (e.Node ==
SelectedNode
)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
2092
if (e.KeyData == Keys.Return &&
SelectedNode
is not null)
2094
SetSelectedItem(
SelectedNode
);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
451
_label2.Text = string.Format(SR.CollectionEditorProperties, _treeView1.
SelectedNode
.Text);
System.Windows.Forms.Tests (20)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (3)
481
Assert.Null(control.
SelectedNode
);
484
Assert.Equal("Node2", control.
SelectedNode
?.Text);
487
Assert.Equal("Node4", control.
SelectedNode
?.Text);
System\Windows\Forms\TreeViewTests.cs (17)
107
Assert.Null(control.
SelectedNode
);
6240
Assert.Same(node, control.
SelectedNode
);
6248
Assert.Same(node, control.
SelectedNode
);
6839
Assert.Equal(treeView.Nodes[0], treeView.
SelectedNode
);
6845
Assert.Equal(treeView.Nodes[0], treeView.
SelectedNode
);
6851
Assert.Equal(treeView.Nodes[0], treeView.
SelectedNode
);
6869
Assert.Equal(node, treeView.
SelectedNode
);
6879
Assert.Null(treeView.
SelectedNode
);
6883
Assert.Equal(treeView.Nodes[0], treeView.
SelectedNode
);
6902
Assert.Equal(treeNode.Nodes[0], treeView.
SelectedNode
);
6908
Assert.Equal(treeNode.Nodes[0], treeView.
SelectedNode
);
6914
Assert.Equal(treeNode.Nodes[0], treeView.
SelectedNode
);
6935
Assert.Equal(node, treeView.
SelectedNode
);
6945
Assert.Equal(treeView.Nodes[0], treeView.
SelectedNode
);
6949
Assert.Equal(treeNode.Nodes[0], treeView.
SelectedNode
);
6967
Assert.Equal(treeNode.Nodes[0], treeView.
SelectedNode
);
6974
Assert.Null(treeView.
SelectedNode
);