AccessibleObject.IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) 方法

定義

取得物件的目前螢幕位置。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

當這個方法傳回時,會包含物件左邊緣的 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.

實作

備註

這個成員是明確介面成員實作,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.

適用於