ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) Method

Definition

Retrieves the next ToolStripItem from the specified reference point and moving in the specified direction.

public virtual System.Windows.Forms.ToolStripItem GetNextItem (System.Windows.Forms.ToolStripItem start, System.Windows.Forms.ArrowDirection direction);
public virtual System.Windows.Forms.ToolStripItem? GetNextItem (System.Windows.Forms.ToolStripItem? start, System.Windows.Forms.ArrowDirection direction);

Parameters

start
ToolStripItem

The ToolStripItem that is the reference point from which to begin the retrieval of the next item.

direction
ArrowDirection

One of the values of ArrowDirection that specifies the direction to move.

Returns

A ToolStripItem that is specified by the start parameter and is next in the order as specified by the direction parameter.

Exceptions

The specified value of the direction parameter is not one of the values of ArrowDirection.

Remarks

Use the GetNextItem method to get the next ToolStripItem of a ToolStrip. The ArrowDirection enumeration coordinates with the Orientation property.

Applies to

Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9