DataGridView::DataGridViewTopRowAccessibleObject::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^An AccessibleObject that represents the object at the specified AccessibleNavigation value.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Owner property is not set. |
The following table describes the AccessibleObject that the Navigate method will return for each parameter value.
Parameter value | Return value |
|---|---|
Next or | An accessible object that represents the first DataGridViewRow that is a data row in the DataGridView. |
An accessible object that represents the first column header in the DataGridView. If the RowHeadersVisible property is set to true, the accessible object represents the DataGridViewTopLeftHeaderCell. | |
An accessible object that represents the column header for the last visible column. | |
All other AccessibleNavigation values | null. |
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
Available since 2.0