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

定義

從指定的參考點擷取下一個 ToolStripItem,並往指定的方向移動。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);
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.

備註

使用方法來取得的ToolStripToolStripItem一個。 GetNextItemUse the GetNextItem method to get the next ToolStripItem of a ToolStrip. ArrowDirection列舉會Orientation與屬性協調。The ArrowDirection enumeration coordinates with the Orientation property.

適用於