DataGridView.DataGridViewControlCollection.Insert(Int32, Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定 Control 值插入到指定的 DataGridView.DataGridViewControlCollection 索引中。
public:
void Insert(int index, System::Windows::Forms::Control ^ value);
public void Insert(int index, System.Windows.Forms.Control value);
member this.Insert : int * System.Windows.Forms.Control -> unit
Public Sub Insert (index As Integer, value As Control)
參數
- index
- Int32
用於插入 value的零基指數。
- value
- Control
例外狀況
index小於零或大於或等於目前控制點數。DataGridView.DataGridViewControlCollection