DataGridViewSelectedCellCollection.Contains(DataGridViewCell) Метод

Определение

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

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

Параметры

dataGridViewCell
DataGridViewCell

Расположение DataGridViewCell в элементе DataGridViewSelectedCellCollection.

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

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

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

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