Control.GetNextControl(Control, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以子控制項的制表順序,向前或往後取下一個控制項。
public:
System::Windows::Forms::Control ^ GetNextControl(System::Windows::Forms::Control ^ ctl, bool forward);
public System.Windows.Forms.Control GetNextControl(System.Windows.Forms.Control ctl, bool forward);
public System.Windows.Forms.Control? GetNextControl(System.Windows.Forms.Control? ctl, bool forward);
member this.GetNextControl : System.Windows.Forms.Control * bool -> System.Windows.Forms.Control
Public Function GetNextControl (ctl As Control, forward As Boolean) As Control
參數
- forward
- Boolean
true 在制表序列中向前搜尋; false 回頭尋找。
傳回
下一張是指法譜順序中的。Control
備註
此 GetNextControl 方法依賴於制表序列。 要遍歷表單的所有控制項,包括巢狀控制項,請使用該 Controls 屬性。 要取得或設定容器控制的主動控制,請使用該 ActiveControl 屬性。