73 references to TreeView
System.Windows.Forms (52)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (32)
16
/// Implements a node of a <see cref="
TreeView
"/>.
231
TreeView? tv =
TreeView
;
259
TreeView? tv =
TreeView
;
299
TreeView? tv =
TreeView
;
347
TreeView? tv =
TreeView
;
458
TreeView? tv =
TreeView
;
484
if (HTREEITEMInternal == IntPtr.Zero &&
TreeView
is not null)
486
TreeView
.CreateControl(); // force handle creation
509
TreeView? tv =
TreeView
;
579
TreeView? tv =
TreeView
;
618
TreeView tv =
TreeView
!;
692
TreeView? tv =
TreeView
;
794
TreeView? tv =
TreeView
;
851
TreeView? tv =
TreeView
;
892
TreeView? tv =
TreeView
;
959
TreeView? tv =
TreeView
;
1019
TreeView? tv =
TreeView
;
1116
_accessibleObject ??=
TreeView
is null
1118
: new TreeNodeAccessibleObject(this,
TreeView
);
1279
TreeView tv =
TreeView
!;
1303
TreeView? tv =
TreeView
;
1403
TreeView? tv =
TreeView
;
1589
TreeView? tv =
TreeView
;
1658
TreeView? tv =
TreeView
;
1672
TreeView? tv =
TreeView
;
1801
if (
TreeView
is not null && node ==
TreeView
._selectedNode)
1803
TreeView
.SelectedNode = node; // communicate this to the handle
1820
TreeView? tv =
TreeView
;
1975
TreeView? tv =
TreeView
;
2135
TreeView tv =
TreeView
!;
2203
TreeView tv =
TreeView
!;
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (5)
39
IWin32Window? IKeyboardToolTip.GetOwnerWindow() =>
TreeView
;
41
bool IKeyboardToolTip.HasRtlModeEnabled() =>
TreeView
?.RightToLeft == RightToLeft.Yes;
45
bool IKeyboardToolTip.IsHoveredWithMouse() =>
TreeView
?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false;
53
private bool AllowToolTips =>
TreeView
?.ShowNodeToolTips ?? false;
61
return
TreeView
?.RectangleToScreen(bounds) ?? Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (3)
27
if (_owner.
TreeView
is not null)
31
return _owner.
TreeView
.StateImageList;
35
return _owner.
TreeView
.ImageList;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
217
TreeView? tv = _owner.
TreeView
;
310
TreeView? tv = _owner.
TreeView
;
446
TreeView? tv = _owner.
TreeView
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (9)
1100
else if (_selectedNode is not null && _selectedNode.
TreeView
== this)
1111
if (IsHandleCreated && (value is null || value.
TreeView
== this))
1116
Debug.Assert(_selectedNode is null || _selectedNode.
TreeView
!= this, "handle is created, but we're still caching selectedNode");
1313
if (IsHandleCreated && (value is null || value.
TreeView
== this))
1318
Debug.Assert(_topNode is null || _topNode.
TreeView
!= this, "handle is created, but we're still caching selectedNode");
2828
Size textSize = TextRenderer.MeasureText(node.Text, node.
TreeView
!.Font);
2840
Font font = node.NodeFont ?? node.
TreeView
.Font;
2841
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.
TreeView
.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.
TreeView
.ForeColor;
System.Windows.Forms.Tests (20)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
54
Assert.Same(treeView, treeNode.
TreeView
);
System\Windows\Forms\TreeNodeTests.cs (19)
49
Assert.Null(node.
TreeView
);
89
Assert.Null(node.
TreeView
);
137
Assert.Null(node.
TreeView
);
180
Assert.Null(node.
TreeView
);
228
Assert.Null(node.
TreeView
);
4509
Assert.Same(control, node.
TreeView
);
4527
Assert.Same(control, node.
TreeView
);
4546
Assert.Null(node1.
TreeView
);
4547
Assert.Null(node2.
TreeView
);
4548
Assert.Null(node3.
TreeView
);
4549
Assert.Null(node4.
TreeView
);
4567
Assert.Same(control, node1.
TreeView
);
4568
Assert.Same(control, node2.
TreeView
);
4569
Assert.Same(control, node3.
TreeView
);
4570
Assert.Same(control, node4.
TreeView
);
4596
Assert.Same(control, node1.
TreeView
);
4597
Assert.Same(control, node2.
TreeView
);
4598
Assert.Same(control, node3.
TreeView
);
4599
Assert.Same(control, node4.
TreeView
);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
118
var effects = node.
TreeView
!.DoDragDrop(dataObject!, DragDropEffects.Copy);