DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) メソッド

定義

コレクションにセルを挿入します。

public:
 void Insert(int index, System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public void Insert (int index, System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.Insert : int * System.Windows.Forms.DataGridViewCell -> unit
Public Sub Insert (index As Integer, dataGridViewCell As DataGridViewCell)

パラメーター

index
Int32

dataGridViewCell を挿入する位置のインデックス番号。

dataGridViewCell
DataGridViewCell

DataGridViewSelectedCellCollection に追加するオブジェクト。

例外

常にスローされます。

注釈

このクラスでは、このメソッドは無効です。 クラスを DataGridViewSelectedCellCollection 直接変更することはできません。 セル DataGridViewSelectedCellCollectionを追加するには、プロパティを DataGridViewCell.Selected 使用します。

適用対象

こちらもご覧ください