Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ToolStrip.GetNextItem Method

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

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public virtual ToolStripItem GetNextItem (
	ToolStripItem start,
	ArrowDirection direction
)
public ToolStripItem GetNextItem (
	ToolStripItem start, 
	ArrowDirection direction
)
public function GetNextItem (
	start : ToolStripItem, 
	direction : ArrowDirection
) : ToolStripItem
Not applicable.

Parameters

start

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

direction

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

Return Value

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

Exception typeCondition

InvalidEnumArgumentException

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

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

Show:
© 2015 Microsoft