16 overrides of HitTest
System.Windows.Forms (13)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
153public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
57public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
248public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
284public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
423public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
83public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
22public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
100public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
120public override AccessibleObject? HitTest(int x, int y) => _owningTreeView.AccessibilityObject.HitTest(x, y);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
57public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
60public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
66public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
84public override AccessibleObject? HitTest(int x, int y)
System.Windows.Forms.Design (3)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
35public override AccessibleObject? HitTest(int x, int y)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
102public override AccessibleObject? HitTest(int x, int y) => _control.AccessibilityObject.HitTest(x, y);
System\Windows\Forms\Design\DesignerFrame.cs (1)
541public override AccessibleObject? HitTest(int x, int y)
42 references to HitTest
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
1661AccessibleObject? obj = HitTest(xLeft, yTop);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5931AccessibleObject? accessibilityObject = AccessibilityObject.HitTest(screenPoint.X, screenPoint.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
33: base.HitTest(x, y);
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
120public override AccessibleObject? HitTest(int x, int y) => _owningTreeView.AccessibilityObject.HitTest(x, y);
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (2)
39return base.HitTest(x, y); 51return base.HitTest(x, y);
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
102public override AccessibleObject? HitTest(int x, int y) => _control.AccessibilityObject.HitTest(x, y);
System\Windows\Forms\Design\DesignerFrame.cs (1)
556return base.HitTest(x, y);
System.Windows.Forms.Tests (31)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (13)
304Assert.Null(accessibleObject.HitTest(x, y)); 321.Setup(a => a.HitTest(x, y)) 323Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.HitTest(x, y)); 342.Setup(a => a.HitTest(x, y)) 344Assert.Null(mockAccessibleObject.Object.HitTest(x, y)); 366.Setup(a => a.HitTest(x, y)) 368Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.HitTest(x, y)); 403.Setup(a => a.HitTest(x, y)) 405Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.HitTest(x, y)); 970.Setup(a => a.HitTest(x, y)) 992.Setup(a => a.HitTest(x, y)) 1017.Setup(a => a.HitTest(x, y)) 1055.Setup(a => a.HitTest(x, y))
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
993Assert.Null(accessibleObject.HitTest(x, y));
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
350var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
1179Assert.Null(listView.AccessibilityObject.HitTest(point.X, point.Y)); 1379listView.AccessibilityObject.HitTest(point.X, point.Y);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (5)
265Assert.Null(accessibleObject.HitTest(10, 33)); 280Assert.Equal(accessibleObject, accessibleObject.HitTest(10, 33)); 296Assert.Equal(expectedAccessibleObject, accessibleObject.HitTest(point.X, point.Y)); 314Assert.Equal(expectedAccessibleObject, accessibleObject.HitTest(point.X, point.Y)); 332Assert.Equal(expectedAccessibleObject, accessibleObject.HitTest(point.X, point.Y));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (4)
525accessibleObject.HitTest(pointInThumb.X, pointInThumb.Y).Should().Be(accessibleObject.ThumbAccessibleObject); 530accessibleObject.HitTest(pointInFirstButton.X, pointInFirstButton.Y).Should().Be(accessibleObject.FirstButtonAccessibleObject); 536accessibleObject.HitTest(pointInLastButton.X, pointInLastButton.Y).Should().Be(accessibleObject.LastButtonAccessibleObject); 539accessibleObject.HitTest(-1, -1).Should().BeNull();
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
236Assert.Null(accessibleObject.HitTest(point.X, point.Y)); 251Assert.Equal(accessibleObject, accessibleObject.HitTest(point.X, point.Y)); 265Assert.Equal(node.AccessibilityObject, control.AccessibilityObject.HitTest(point.X, point.Y));
System\Windows\Forms\TreeNodeTests.cs (2)
4646AccessibleObject hitTestResult = accessibleObject.HitTest(x, y); 4654hitTestResult.Should().Be(treeView.AccessibilityObject.HitTest(x, y));
System.Windows.Forms.UI.IntegrationTests (3)
ListBoxAccesibleObjectTests.cs (2)
41var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y); 57var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y);
ListViewTests.cs (1)
298listView.AccessibilityObject.HitTest(point.X, point.Y)!;