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

要在 DataGridViewRow 中定位的 DataGridViewRowCollection

返回

如果 DataGridViewRowDataGridViewRowCollection 中,则为 true;否则为 false

适用于

另请参阅