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

Definition

获取对象的当前屏幕位置。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);
abstract member Accessibility.IAccessible.accLocation : int * int * int * int * obj -> unit
override this.Accessibility.IAccessible.accLocation : int * int * int * int * obj -> unit
Sub accLocation (ByRef pxLeft As Integer, ByRef pyTop As Integer, ByRef pcxWidth As Integer, ByRef pcyHeight As Integer, childID As Object) Implements IAccessible.accLocation

Parameters

pxLeft
Int32

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

pyTop
Int32

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

pcxWidth
Int32

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

pcyHeight
Int32

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

childID
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.

Implements

Remarks

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

Applies to