DataGridView.DataGridViewControlCollection.Insert(Int32, Control) メソッド
定義
Control 内の指定したインデックスに、指定した DataGridView.DataGridViewControlCollection を挿入します。Inserts the specified Control into the DataGridView.DataGridViewControlCollection at the specified index.
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
を挿入する位置の、0 以上のインデックス。The zero-based index at which to insert value
.
- value
- Control
DataGridView.DataGridViewControlCollection に挿入する Control。The Control to insert into the DataGridView.DataGridViewControlCollection.
例外
index
が 0 未満か DataGridView.DataGridViewControlCollection に現在含まれているコントロール数以上の値です。index
is less than zero or greater than or equal to the current number of controls in the DataGridView.DataGridViewControlCollection.