AccessibleObject.IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) AccessibleObject.IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) AccessibleObject.IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) Method

定义

获取对象的当前屏幕位置。Gets the object's current screen location. 有关此成员的说明,请参见 accLocation(Int32, Int32, Int32, Int32, Object)For a description of this member, see accLocation(Int32, Int32, Int32, Int32, Object).

 virtual void Accessibility.IAccessible.accLocation([Runtime::InteropServices::Out] int % pxLeft, [Runtime::InteropServices::Out] int % pyTop, [Runtime::InteropServices::Out] int % pcxWidth, [Runtime::InteropServices::Out] int % pcyHeight, System::Object ^ childID) = Accessibility::IAccessible::accLocation;
void IAccessible.accLocation (out int pxLeft, out int pyTop, out int pcxWidth, out int pcyHeight, object childID);
Sub accLocation (ByRef pxLeft As Integer, ByRef pyTop As Integer, ByRef pcxWidth As Integer, ByRef pcyHeight As Integer, childID As Object) Implements IAccessible.accLocation

参数

pxLeft
Int32 Int32 Int32

该方法返回时,包含对象左边缘的 x 坐标。When this method returns, contains the x-coordinate of the object's left edge. 此参数未经初始化即被传递。This parameter is passed uninitialized.

pyTop
Int32 Int32 Int32

该方法返回时,包含对象上边缘的 y 坐标。When this method returns, contains the y-coordinate of the object's top edge. 此参数未经初始化即被传递。This parameter is passed uninitialized.

pcxWidth
Int32 Int32 Int32

该方法返回时,包含对象的宽度。When this method returns, contains the width of the object. 此参数未经初始化即被传递。This parameter is passed uninitialized.

pcyHeight
Int32 Int32 Int32

该方法返回时,包含对象的高度。When this method returns, contains the height of the object. 此参数未经初始化即被传递。This parameter is passed uninitialized.

childID
Object Object Object

辅助性对象的 ID 号。The ID number of the accessible object. 该参数为 0,则获取对象的位置;或者,如果该参数为子级 ID,则获取对象的一个子对象的位置。This parameter is 0 to get the location of the object, or a child ID to get the location of one of the object's child objects.

实现

注解

此成员是显式接口成员的实现。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.

适用于