DataGridViewCell::DataGridViewCellAccessibleObject::Navigate Method (AccessibleNavigation)
Navigates to another accessible object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual AccessibleObject^ Navigate( AccessibleNavigation navigationDirection ) override
Parameters
- navigationDirection
-
Type:
System.Windows.Forms::AccessibleNavigation
One of the AccessibleNavigation values.
Return Value
Type: System.Windows.Forms::AccessibleObject^A DataGridViewCell::DataGridViewCellAccessibleObject that represents the DataGridViewCell at the specified AccessibleNavigation value.
| Exception | Condition |
|---|---|
| InvalidOperationException | The value of the Owner property is null. |
The following table describes which DataGridViewCell owns the DataGridViewCell::DataGridViewCellAccessibleObject that is returned by the Navigate method for each parameter value.
Parameter value | Description |
|---|---|
The DataGridViewCell to the right of the current cell. Navigate returns null if the current cell is in the right-most column. | |
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. | |
The DataGridViewCell that has the next higher index. Navigate returns null if the current cell is in the first column. | |
The DataGridViewCell that has the next lower index. Navigate returns null if the current cell is in the last column. | |
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. | |
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. |
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
Available since 2.0