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