DataGridViewSelectedCellCollection.Item[Int32] Propiedad

Definición

Obtiene la celda en el índice especificado.

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

Parámetros

index
Int32

Índice de la columna DataGridViewCell que obtener de la colección DataGridViewSelectedCellCollection.

Valor de propiedad

Objeto DataGridViewCell en el índice especificado.

Excepciones

index es menor que 0.

o bien

El valor de index es igual o mayor que el número de celdas de la colección.

Se aplica a

Consulte también