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


巡覽至相對於目前物件的可存取物件。Navigates to an accessible object relative to the current object. 如需這個成員的說明,請參閱 accNavigate(Int32, Object)For a description of this member, see accNavigate(Int32, Object).

 virtual System::Object ^ Accessibility.IAccessible.accNavigate(int navDir, System::Object ^ childID) = Accessibility::IAccessible::accNavigate;
object IAccessible.accNavigate (int navDir, object childID);
Function accNavigate (navDir As Integer, childID As Object) As Object Implements IAccessible.accNavigate



其中一個 AccessibleNavigation 列舉型別,指定要巡覽的方向。One of the AccessibleNavigation enumerations that specifies the direction to navigate.


可存取物件的 ID 編號。The ID number of the accessible object. 這個參數為 0 時,表示從物件開始;如果是子系 ID,則表示從其中一個物件的子物件開始。This parameter is 0 to start from the object, or a child ID to start from one of the object's child objects.


位於 navDir 指定的值的可存取物件。The accessible object positioned at the value specified by navDir.



下表描述 IAccessible.accNavigate 方法可以傳回的物件類型。The following table describes the object types that the IAccessible.accNavigate method can return.

類型Type 說明Description
null 在指定的方向沒有可存取的物件。There is not an accessible object at the specified direction.
IAccessible 指定方向的可存取物件。The accessible object at the specified direction.
integerinteger 在指定方向識別可存取物件的子系識別碼。The child ID that identifies the accessible object at the specified direction. 使用父系 IAccessible 和子系識別碼來存取可存取的物件。Use the parent IAccessible and the child ID to access the accessible object.

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