DataGridViewCellCollection.IndexOf(DataGridViewCell) Метод

Определение

Возвращает индекс указанной ячейки.

public:
 int IndexOf(System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public int IndexOf(System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.IndexOf : System.Windows.Forms.DataGridViewCell -> int
Public Function IndexOf (dataGridViewCell As DataGridViewCell) As Integer

Параметры

dataGridViewCell
DataGridViewCell

Ячейка, расположенная в коллекции.

Возвращаемое значение

Отсчитываемый от нуля индекс значения dataGridViewCell параметра, если он найден в коллекции; в противном случае — значение -1.

Применяется к

См. также раздел