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