ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
public virtual System.Windows.Forms.ToolStripItem? GetNextItem (System.Windows.Forms.ToolStripItem? start, System.Windows.Forms.ArrowDirection direction);
abstract member GetNextItem : System.Windows.Forms.ToolStripItem * System.Windows.Forms.ArrowDirection -> System.Windows.Forms.ToolStripItem
override this.GetNextItem : System.Windows.Forms.ToolStripItem * System.Windows.Forms.ArrowDirection -> System.Windows.Forms.ToolStripItem
Public Overridable Function GetNextItem (start As ToolStripItem, direction As ArrowDirection) As ToolStripItem
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
.NET