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)
2073
(treeViewHitTestInfo.Location ==
TreeViewHitTestLocations
.Image ||
2074
treeViewHitTestInfo.Location ==
TreeViewHitTestLocations
.Label))
System.Windows.Forms.Tests (40)
System\Windows\Forms\TreeViewHitTestInfoTests.cs (3)
12
foreach (
TreeViewHitTestLocations
hitLocation in Enum.GetValues(typeof(
TreeViewHitTestLocations
)))
24
public void TreeViewHitTestInfo_Ctor_TreeNode_TreeViewHitTestLocations(TreeNode hitNode,
TreeViewHitTestLocations
hitLocation)
System\Windows\Forms\TreeViewTests.cs (37)
5084
yield return new object[] { new Point(int.MinValue, int.MinValue),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5085
yield return new object[] { new Point(-1, -2),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5086
yield return new object[] { new Point(-1, 0),
TreeViewHitTestLocations
.LeftOfClientArea };
5087
yield return new object[] { new Point(-1, 2),
TreeViewHitTestLocations
.LeftOfClientArea };
5088
yield return new object[] { new Point(0, -2),
TreeViewHitTestLocations
.AboveClientArea };
5089
yield return new object[] { new Point(0, 0),
TreeViewHitTestLocations
.None };
5090
yield return new object[] { new Point(0, 2),
TreeViewHitTestLocations
.None };
5091
yield return new object[] { new Point(1, -2),
TreeViewHitTestLocations
.AboveClientArea };
5092
yield return new object[] { new Point(1, 0),
TreeViewHitTestLocations
.None };
5093
yield return new object[] { new Point(1, 2),
TreeViewHitTestLocations
.None };
5094
yield return new object[] { new Point(int.MaxValue, int.MaxValue),
TreeViewHitTestLocations
.BelowClientArea |
TreeViewHitTestLocations
.RightOfClientArea };
5099
public void TreeView_HitTest_InvokePointEmpty_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5116
yield return new object[] { new Point(0, 0),
TreeViewHitTestLocations
.Indent };
5121
public void TreeView_HitTest_InvokePointNotEmptyValid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5140
yield return new object[] { new Point(int.MinValue, int.MinValue),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5141
yield return new object[] { new Point(-1, -2),
TreeViewHitTestLocations
.AboveClientArea |
TreeViewHitTestLocations
.LeftOfClientArea };
5142
yield return new object[] { new Point(-1, 0),
TreeViewHitTestLocations
.LeftOfClientArea };
5143
yield return new object[] { new Point(-1, 2),
TreeViewHitTestLocations
.LeftOfClientArea };
5144
yield return new object[] { new Point(0, -2),
TreeViewHitTestLocations
.AboveClientArea };
5145
yield return new object[] { new Point(1, -2),
TreeViewHitTestLocations
.AboveClientArea };
5146
yield return new object[] { new Point(int.MaxValue, int.MaxValue),
TreeViewHitTestLocations
.BelowClientArea |
TreeViewHitTestLocations
.RightOfClientArea };
5151
public void TreeView_HitTest_InvokePointNotEmptyInvalid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5170
public void TreeView_HitTest_InvokePointEmptyWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5201
public void TreeView_HitTest_InvokePointNotEmptyValidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5234
public void TreeView_HitTest_InvokePointNotEmptyInvalidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5267
public void TreeView_HitTest_InvokeIntIntEmpty_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5284
public void TreeView_HitTest_InvokeIntIntNotEmptyValid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5303
public void TreeView_HitTest_InvokeIntIntNotEmptyInvalid_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5322
public void TreeView_HitTest_InvokeIntIntEmptyWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5353
public void TreeView_HitTest_InvokeIntIntNotEmptyValidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)
5386
public void TreeView_HitTest_InvokeIntIntNotEmptyInvalidWithHandle_Success(Point pt,
TreeViewHitTestLocations
expectedLocations)