DataGridViewRowCollection.GetRowsHeight(DataGridViewElementStates) 方法

定义

返回符合指定条件的 DataGridViewRow 对象的累积高度。Returns the cumulative height of the DataGridViewRow objects that meet the specified criteria.

public:
 int GetRowsHeight(System::Windows::Forms::DataGridViewElementStates includeFilter);
public int GetRowsHeight (System.Windows.Forms.DataGridViewElementStates includeFilter);
member this.GetRowsHeight : System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetRowsHeight (includeFilter As DataGridViewElementStates) As Integer

参数

includeFilter
DataGridViewElementStates

DataGridViewElementStates 值的按位组合。A bitwise combination of DataGridViewElementStates values.

返回

DataGridViewRow 中具有 includeFilter 所指定特性的 DataGridViewRowCollection 对象的累积高度。The cumulative height of DataGridViewRow objects in the DataGridViewRowCollection that have the attributes specified by includeFilter.

异常

includeFilter 不是 DataGridViewElementStates 值的有效按位组合。includeFilter is not a valid bitwise combination of DataGridViewElementStates values.

适用于

另请参阅