DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Metoda

Definicja

Wstawia komórkę do kolekcji.

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

Indeks, w którym dataGridViewCell należy wstawić.

dataGridViewCell
DataGridViewCell

Obiekt, który ma zostać dodany do obiektu DataGridViewSelectedCellCollection.

Wyjątki

Zawsze generowany.

Uwagi

Ta metoda nie jest odpowiednia dla tej klasy. Nie można bezpośrednio zmienić DataGridViewSelectedCellCollection klasy. Aby dodać komórkę do obiektu DataGridViewSelectedCellCollection, użyj DataGridViewCell.Selected właściwości .

Dotyczy

Zobacz też