語言

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

參數

傳回

true 若 dataGridViewCell 屬於 DataGridViewSelectedCellCollection;否則, false。

適用於

另請參閱