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.

適用於

另請參閱