DataGridViewSelectedCellCollection.Contains(DataGridViewCell) Method

Definition

Determines whether the specified cell is contained in the collection.

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

Parameters

Returns

true if dataGridViewCell is in the DataGridViewSelectedCellCollection; otherwise, false.

Applies to

See also