편집

다음을 통해 공유


DataGridViewCell.DataGridViewCellAccessibleObject.Navigate Method

Definition

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);
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

Parameters

navigationDirection
AccessibleNavigation

One of the AccessibleNavigation values.

Returns

A DataGridViewCell.DataGridViewCellAccessibleObject that represents the DataGridViewCell at the specified AccessibleNavigation value.

Exceptions

The value of the Owner property is null.

Remarks

The following table describes which DataGridViewCell owns the DataGridViewCell.DataGridViewCellAccessibleObject that is returned by the Navigate method for each parameter value.

Parameter value Description
Right The DataGridViewCell to the right of the current cell. Navigate returns null if the current cell is in the right-most column.
Left The DataGridViewCell to the left of the current cell. Navigate returns an accessible object for the row header if the current cell is in the left-most column.
Next The DataGridViewCell that has the next higher index. Navigate returns null if the current cell is in the first column.
Previous The DataGridViewCell that has the next lower index. Navigate returns null if the current cell is in the last column.
Up The DataGridViewCell in the same column and one row above the current cell. Navigate returns null if the current cell is in the first row.
Down The DataGridViewCell in the same column and one row below the current cell. Navigate returns null if the current cell is in the last row.
All other AccessibleNavigation values null.

Applies to

See also