DataGridViewRowCollection.GetRowsHeight(DataGridViewElementStates) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回满足指定条件的对象累积高度 DataGridViewRow 。
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 。
返回
具有指定DataGridViewRow属性的对象累积DataGridViewRowCollectionincludeFilter高度。
例外
includeFilter 不是值的有效按位组合 DataGridViewElementStates 。