DataGridViewSelectedCellCollection.Contains(DataGridViewCell) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的儲存格是否包含在集合中。
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
傳回
true 若 dataGridViewCell 屬於 DataGridViewSelectedCellCollection;否則, false。