DataGridView.DataGridViewTopRowAccessibleObject.Navigate(AccessibleNavigation) 方法

定义

定位到另一个辅助性对象。Navigates to another accessible object.

public:
 override System::Windows::Forms::AccessibleObject ^ Navigate(System::Windows::Forms::AccessibleNavigation navigationDirection);
public override System.Windows.Forms.AccessibleObject Navigate (System.Windows.Forms.AccessibleNavigation navigationDirection);
override this.Navigate : System.Windows.Forms.AccessibleNavigation -> System.Windows.Forms.AccessibleObject
Public Overrides Function Navigate (navigationDirection As AccessibleNavigation) As AccessibleObject

参数

navigationDirection
AccessibleNavigation

AccessibleNavigation 值之一。One of the AccessibleNavigation values.

返回

AccessibleObject

AccessibleObject,它表示位于指定的 AccessibleNavigation 值的对象。An AccessibleObject that represents the object at the specified AccessibleNavigation value.

例外

未设置 Owner 属性。The Owner property is not set.

注解

下表描述了 AccessibleObject Navigate 方法将为每个参数值返回的。The following table describes the AccessibleObject that the Navigate method will return for each parameter value.

参数值Parameter value 返回值Return value
NextNext or

Down
一个辅助性对象,该对象表示中作为数据行的第一个 DataGridViewRow DataGridViewAn accessible object that represents the first DataGridViewRow that is a data row in the DataGridView.
FirstChild 一个可访问对象,该对象表示中的第一个列标题 DataGridViewAn accessible object that represents the first column header in the DataGridView. 如果将 RowHeadersVisible 属性设置为 true ,则可访问对象表示 DataGridViewTopLeftHeaderCellIf the RowHeadersVisible property is set to true, the accessible object represents the DataGridViewTopLeftHeaderCell.
LastChild 一个辅助性对象,该对象表示最后一个可见列的列标题。An accessible object that represents the column header for the last visible column.
所有其他 AccessibleNavigationAll other AccessibleNavigation values null.null.

适用于

另请参阅