ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) Method

Definition

通过从指定参考点沿指定方向移动来检索下一个 ToolStripItemRetrieves 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);
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

ToolStripItem,是要从其开始检索下一项的起始参考点。The ToolStripItem that is the reference point from which to begin the retrieval of the next item.

direction
ArrowDirection

ArrowDirection 的值之一,用于指定移动的方向。One of the values of ArrowDirection that specifies the direction to move.

Returns

ToolStripItem

ToolStripItem,由 start 参数指定,是 direction 参数指定的顺序中的下一项。A ToolStripItem that is specified by the start parameter and is next in the order as specified by the direction parameter.

Exceptions

direction 参数的指定值不是 ArrowDirection 的值之一。The specified value of the direction parameter is not one of the values of ArrowDirection.

Remarks

使用 GetNextItem 方法可获取 ToolStrip的下一个 ToolStripItemUse the GetNextItem method to get the next ToolStripItem of a ToolStrip. ArrowDirection 枚举与 Orientation 属性协调。The ArrowDirection enumeration coordinates with the Orientation property.

Applies to