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

要在 DataGridViewSelectedCellCollection 中尋找的 DataGridViewCell

傳回

Boolean

如果 dataGridViewCell 位於 DataGridViewSelectedCellCollection 中,則為 true,否則為 false

適用於

另請參閱