AccessibleObject.IAccessible.accHitTest(Int32, Int32) 方法

定義

取得位於指定螢幕座標的子物件。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

參數

xLeft
Int32

水平座標。The horizontal coordinate.

yTop
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.
integerinteger 如果指定的點是目前物件或物件界限之外,則為 0;否則,會以指定的方向識別可存取物件的子系識別碼。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.

適用於