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);
object IAccessible.accNavigate (int navDir, object childID);
abstract member Accessibility.IAccessible.accNavigate : int * obj -> obj
override this.Accessibility.IAccessible.accNavigate : int * obj -> obj
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.accNavigateThe 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.
整型integer 在指定方向标识辅助性对象的子级 ID。The child ID that identifies the accessible object at the specified direction. 使用父级 IAccessible 和子级 ID 访问辅助性对象。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.