DataGridViewCellCollection.Contains(DataGridViewCell) 方法

定义

确定指定的单元格是否包含在集合中。

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

参数

dataGridViewCell
DataGridViewCell

要在集合中定位的 DataGridViewCell

返回

Boolean

如果 true 位于集合中,则为 dataGridViewCell;否则为 false

适用于

另请参阅