47 references to TreeViewHitTestLocations
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1646
TreeViewHitTestLocations
loc = (
TreeViewHitTestLocations
)tvhi.flags;
System\Windows\Forms\Controls\TreeView\TreeViewHitTestInfo.cs (3)
11
private readonly
TreeViewHitTestLocations
_location;
17
public TreeViewHitTestInfo(TreeNode? hitNode,
TreeViewHitTestLocations
hitLocation)
26
public
TreeViewHitTestLocations
Location
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
2074
(treeViewHitTestInfo.Location ==
TreeViewHitTestLocations
.Image ||
2075
treeViewHitTestInfo.Location ==
TreeViewHitTestLocations
.Label))
System.Windows.Forms.Tests (40)
System\Windows\Forms\TreeViewHitTestInfoTests.cs (3)
10
foreach (
TreeViewHitTestLocations
hitLocation in Enum.GetValues(typeof(
TreeViewHitTestLocations
)))
22
public void TreeViewHitTestInfo_Ctor_TreeNode_TreeViewHitTestLocations(TreeNode hitNode,
TreeViewHitTestLocations
hitLocation)
System\Windows\Forms\TreeViewTests.cs (37)
5082
yield return new object[] { new Point(int.MinValue, int.MinValue),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5083
yield return new object[] { new Point(-1, -2),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5084
yield return new object[] { new Point(-1, 0),
TreeViewHitTestLocations
.LeftOfClientArea };
5085
yield return new object[] { new Point(-1, 2),
TreeViewHitTestLocations
.LeftOfClientArea };
5086
yield return new object[] { new Point(0, -2),
TreeViewHitTestLocations
.AboveClientArea };
5087
yield return new object[] { new Point(0, 0),
TreeViewHitTestLocations
.None };
5088
yield return new object[] { new Point(0, 2),
TreeViewHitTestLocations
.None };
5089
yield return new object[] { new Point(1, -2),
TreeViewHitTestLocations
.AboveClientArea };
5090
yield return new object[] { new Point(1, 0),
TreeViewHitTestLocations
.None };
5091
yield return new object[] { new Point(1, 2),
TreeViewHitTestLocations
.None };
5092
yield return new object[] { new Point(int.MaxValue, int.MaxValue),
TreeViewHitTestLocations
.BelowClientArea |
TreeViewHitTestLocations
.RightOfClientArea };
5097
public void TreeView_HitTest_InvokePointEmpty_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5114
yield return new object[] { new Point(0, 0),
TreeViewHitTestLocations
.Indent };
5119
public void TreeView_HitTest_InvokePointNotEmptyValid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5138
yield return new object[] { new Point(int.MinValue, int.MinValue),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5139
yield return new object[] { new Point(-1, -2),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5140
yield return new object[] { new Point(-1, 0),
TreeViewHitTestLocations
.LeftOfClientArea };
5141
yield return new object[] { new Point(-1, 2),
TreeViewHitTestLocations
.LeftOfClientArea };
5142
yield return new object[] { new Point(0, -2),
TreeViewHitTestLocations
.AboveClientArea };
5143
yield return new object[] { new Point(1, -2),
TreeViewHitTestLocations
.AboveClientArea };
5144
yield return new object[] { new Point(int.MaxValue, int.MaxValue),
TreeViewHitTestLocations
.BelowClientArea |
TreeViewHitTestLocations
.RightOfClientArea };
5149
public void TreeView_HitTest_InvokePointNotEmptyInvalid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5168
public void TreeView_HitTest_InvokePointEmptyWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5199
public void TreeView_HitTest_InvokePointNotEmptyValidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5232
public void TreeView_HitTest_InvokePointNotEmptyInvalidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5265
public void TreeView_HitTest_InvokeIntIntEmpty_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5282
public void TreeView_HitTest_InvokeIntIntNotEmptyValid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5301
public void TreeView_HitTest_InvokeIntIntNotEmptyInvalid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5320
public void TreeView_HitTest_InvokeIntIntEmptyWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5351
public void TreeView_HitTest_InvokeIntIntNotEmptyValidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5384
public void TreeView_HitTest_InvokeIntIntNotEmptyInvalidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)