AccessibleObject.IAccessible.accHitTest(Int32, Int32) AccessibleObject.IAccessible.accHitTest(Int32, Int32) AccessibleObject.IAccessible.accHitTest(Int32, Int32) Method


在指定的屏幕坐标位置获取子对象。Gets the child object at the specified screen coordinates. 有关此成员的说明,请参见 accHitTest(Int32, Int32)For a description of this member, see accHitTest(Int32, Int32).

 virtual System::Object ^ Accessibility.IAccessible.accHitTest(int xLeft, int yTop) = Accessibility::IAccessible::accHitTest;
object IAccessible.accHitTest (int xLeft, int yTop);
Function accHitTest (xLeft As Integer, yTop As Integer) As Object Implements IAccessible.accHitTest


Int32 Int32 Int32

水平坐标。The horizontal coordinate.

Int32 Int32 Int32

垂直坐标。The vertical coordinate.


位于由 xLeftyTop 指定的点位置的辅助性对象。The accessible object at the point specified by xLeft and yTop.



下表介绍IAccessible.accHitTest方法可以返回的对象类型。The following table describes the object types that the IAccessible.accHitTest method can return.

类型Type 说明Description
IAccessible 指定方向上的辅助性对象。The accessible object at the specified direction.
整数integer 如果指定的点为当前对象或超出对象的边界, 则为 0; 否则为0。否则为按指定方向标识辅助性对象的子 ID。0 if the point specified is either the current object or outside the object's boundaries; otherwise, the child ID that identifies the accessible object at the specified direction.

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 AccessibleObject 实例被强制转换为 IAccessible 接口时使用。It can be used only when the AccessibleObject instance is cast to an IAccessible interface.