Bahasa

DataGridViewSelectedCellCollection.Item[Int32] Properti

Definisi

Mendapatkan sel di indeks yang ditentukan.

public:
 property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell
Default Public ReadOnly Property Item(index As Integer) As DataGridViewCell

Parameter

index
Int32

Indeks DataGridViewCell untuk mendapatkan dari DataGridViewSelectedCellCollection.

Nilai Properti

pada DataGridViewCell indeks yang ditentukan.

Pengecualian

index kurang dari 0.

-atau-

index sama dengan atau lebih besar dari jumlah sel dalam koleksi.

Berlaku untuk

Lihat juga