Sdílet prostřednictvím


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 by se měl vložit.

dataGridViewCell
DataGridViewCell

Objekt, který má být přidán do objektu DataGridViewSelectedCellCollection.

Výjimky

Vždycky vyhodili.

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é