DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.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 DataGridViewCell owns the AccessibleObject that is returned by the Navigate method.

Parameter value

Description

Next

The first DataGridViewCell in the row, not including the DataGridViewRowHeaderCell. Navigate returns the DataGridViewRowHeaderCell below the current row if the DataGridView has no other columns.

Up

The DataGridViewRowHeaderCell above the current row. Navigate returns null if the current row is the first row.

Down

The DataGridViewRowHeaderCell below the current row. Navigate returns null if the current row is the last row.

All other AccessibleNavigation values

null.

SecurityPermission

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

.NET Framework
Available since 2.0
Return to top
Show: