4 writes to _selectedNode
System.Windows.Forms (4)
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1120
_selectedNode
= null;
1124
_selectedNode
= value;
1851
_selectedNode
= null;
2025
_selectedNode
= SelectedNode;
8 references to _selectedNode
System.Windows.Forms (8)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1801
if (TreeView is not null && node == TreeView.
_selectedNode
)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
343
if (tv is not null && node == tv.
_selectedNode
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
1100
else if (
_selectedNode
is not null &&
_selectedNode
.TreeView == this)
1102
return
_selectedNode
;
1116
Debug.Assert(
_selectedNode
is null ||
_selectedNode
.TreeView != this, "handle is created, but we're still caching selectedNode");
1850
TreeNode? savedSelectedNode =
_selectedNode
;