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

返回

如果 dataGridViewCellDataGridViewSelectedCellCollection 中,则为 true;否则为 false

适用于

另请参阅