DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Metoda

Definice

Vloží buňku do kolekce.

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)

Parametry

index
Int32

Index, do kterého dataGridViewCell se má vložit.

dataGridViewCell
DataGridViewCell

Objekt, který se má přidat do objektu DataGridViewSelectedCellCollection.

Výjimky

Vždy vyvolána.

Poznámky

Tato metoda není pro tuto třídu relevantní. Třídu nelze změnit DataGridViewSelectedCellCollection přímo. Chcete-li přidat buňku do objektu DataGridViewSelectedCellCollection, použijte DataGridViewCell.Selected vlastnost.

Platí pro

Viz také