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

DataGridViewSelectedCellCollection 内で検索される DataGridViewCell

戻り値

dataGridViewCellDataGridViewSelectedCellCollection 内にある場合は true、それ以外の場合は false

適用対象

こちらもご覧ください