共用方式為


DataGridViewRowCollection.Contains(DataGridViewRow) 方法

定義

判斷集合中是否有指定的 DataGridViewRow

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

參數

dataGridViewRow
DataGridViewRow

要在 DataGridViewRowCollection 中尋找的 DataGridViewRow

傳回

如果 DataGridViewRowCollection 中有 DataGridViewRow,則為 true,否則為 false

適用於

另請參閱