ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) ToolStrip.GetNextItem(ToolStripItem, ArrowDirection) Method

定义

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

参数

start
ToolStripItem ToolStripItem ToolStripItem ToolStripItem

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

direction
ArrowDirection ArrowDirection ArrowDirection ArrowDirection

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

返回

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

异常

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

注解

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

适用于