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