Export (0) Print
Expand All

DataGridViewCell.DataGridViewCellAccessibleObject.Navigate Method

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.

ExceptionCondition
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

Right

The DataGridViewCell to the right of the current cell. Navigate returns null if the current cell is in the right-most column.

Left

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.

Next

The DataGridViewCell that has the next higher index. Navigate returns null if the current cell is in the first column.

Previous

The DataGridViewCell that has the next lower index. Navigate returns null if the current cell is in the last column.

Up

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.

Down

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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft