DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.Navigate Method (AccessibleNavigation)

 

Navigates to another accessible object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public override AccessibleObject Navigate(
	AccessibleNavigation navigationDirection
)

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

Right

The DataGridViewColumnHeaderCell to the right of the current header cell.

Left

The DataGridViewColumnHeaderCell to the left of the current header cell.

Next

The DataGridViewColumnHeaderCell after the current header cell.

Previous

The DataGridViewColumnHeaderCell before the current header cell.

FirstChild

The first DataGridViewColumnHeaderCell. Navigate returns the DataGridViewTopLeftHeaderCell if the RowHeadersVisible property is true.

LastChild

The last DataGridViewColumnHeaderCell.

System_CAPS_noteNote

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.

SecurityPermission

to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: