Bagikan melalui


DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Metode

Definisi

Menyisipkan sel ke dalam koleksi.

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)

Parameter

index
Int32

Indeks di mana dataGridViewCell harus disisipkan.

dataGridViewCell
DataGridViewCell

Objek yang akan ditambahkan ke DataGridViewSelectedCellCollection.

Pengecualian

Selalu dilemparkan.

Keterangan

Metode ini tidak relevan untuk kelas ini. Anda tidak dapat mengubah kelas secara DataGridViewSelectedCellCollection langsung. Untuk menambahkan sel ke DataGridViewSelectedCellCollection, gunakan DataGridViewCell.Selected properti .

Berlaku untuk

Lihat juga