DataGridViewSelectedRowCollection.Contains(DataGridViewRow) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的列是否包含在集合中。
public:
bool Contains(System::Windows::Forms::DataGridViewRow ^ dataGridViewRow);
public bool Contains(System.Windows.Forms.DataGridViewRow dataGridViewRow);
member this.Contains : System.Windows.Forms.DataGridViewRow -> bool
Public Function Contains (dataGridViewRow As DataGridViewRow) As Boolean
參數
- dataGridViewRow
- DataGridViewRow
傳回
true 若 dataGridViewRow 在集合中;否則, false。