DataGridViewColumnHeaderCell::DataGridViewColumnHeaderCellAccessibleObject::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 an object in the specified direction.
The following table describes which DataGridViewColumnHeaderCell owns the AccessibleObject that is returned by the Navigate method.
Parameter value | Description |
|---|---|
The DataGridViewColumnHeaderCell to the right of the current header cell. | |
The DataGridViewColumnHeaderCell to the left of the current header cell. | |
The DataGridViewColumnHeaderCell after the current header cell. | |
The DataGridViewColumnHeaderCell before the current header cell. | |
The first DataGridViewColumnHeaderCell. Navigate returns the DataGridViewTopLeftHeaderCell if the RowHeadersVisible property is true. | |
The last DataGridViewColumnHeaderCell. |
Note |
|---|
The direction that the Navigate method moves when you specify Next or Previous depends on whether the DataGridView has right-to-left support enabled. For example, if right-to-left support is enabled, Navigate will return the same accessible object when you specify Next or Left. If right-to-left support is not enabled, Navigate will return the same object when you specify Next or Right. |
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
Available since 2.0
