DataGridViewSelectedCellCollection.Contains(DataGridViewCell) 方法

定义

确定指定的单元格是否包含在集合中。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

参数

返回

Boolean

如果 dataGridViewCellDataGridViewSelectedCellCollection 中,则为 true;否则为 falsetrue if dataGridViewCell is in the DataGridViewSelectedCellCollection; otherwise, false.

适用于

另请参阅