DataGridViewRowCollection.GetRowState(Int32) 方法

定义

获取具有指定索引的行的状态。Gets the state of the row with the specified index.

public:
 virtual System::Windows::Forms::DataGridViewElementStates GetRowState(int rowIndex);
public virtual System.Windows.Forms.DataGridViewElementStates GetRowState (int rowIndex);
abstract member GetRowState : int -> System.Windows.Forms.DataGridViewElementStates
override this.GetRowState : int -> System.Windows.Forms.DataGridViewElementStates
Public Overridable Function GetRowState (rowIndex As Integer) As DataGridViewElementStates

参数

rowIndex
Int32

行的索引。The index of the row.

返回

DataGridViewElementStates 值的按位组合,指示指定行的状态。A bitwise combination of DataGridViewElementStates values indicating the state of the specified row.

异常

rowIndex 小于零或大于集合中的行数减一。rowIndex is less than zero and greater than the number of rows in the collection minus one.

适用于

另请参阅