ConnectorAccessibleObject.HitTest(Int32, Int32) 方法
定义
检索位于指定屏幕坐标的子对象。Retrieves the child object at the specified screen coordinates.
public:
override System::Windows::Forms::AccessibleObject ^ HitTest(int x, int y);
public override System.Windows.Forms.AccessibleObject HitTest (int x, int y);
override this.HitTest : int * int -> System.Windows.Forms.AccessibleObject
Public Overrides Function HitTest (x As Integer, y As Integer) As AccessibleObject
参数
- x
- Int32
水平屏幕坐标。The horizontal screen coordinate.
- y
- Int32
垂直屏幕坐标。The vertical screen coordinate.
返回
一个 ConnectorAccessibleObject,表示位于给定屏幕坐标位置的子对象。An ConnectorAccessibleObject the child object at the given screen coordinates. 如果对象本身位于指定位置,则此方法返回调用对象。This method returns the calling object if the object itself is at the location specified. 如果在测试位置没有对象,则会返回空引用(在 Visual Basic 中为 Nothing)。Returns a null reference (Nothing in Visual Basic) if no object is at the tested location.