DataGridViewSelectedRowCollection.Contains(DataGridViewRow) Метод

Определение

Определяет, содержится ли указанная строка в коллекции.

public:
 bool Contains(System::Windows::Forms::DataGridViewRow ^ dataGridViewRow);
public bool Contains(System.Windows.Forms.DataGridViewRow dataGridViewRow);
member this.Contains : System.Windows.Forms.DataGridViewRow -> bool
Public Function Contains (dataGridViewRow As DataGridViewRow) As Boolean

Параметры

dataGridViewRow
DataGridViewRow

Расположение DataGridViewRow в элементе DataGridViewSelectedRowCollection.

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

true Значение , если dataGridViewRow находится в коллекции; в противном случае false.

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

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