GetRowHeight Method
Gets the row height.
Syntax
[VB.NET] Public Function GetRowHeight(ByVal Row As Integer, ByVal RowCount As Integer) As Integer
[C#] public int GetRowHeight(int row, int rowCount);
Remarks
This method returns the row height for one or more rows. The Row parameter specifies the index of the starting row. The RowCount specifies the number of rows to include when obtaining the height.
The value returned is the height of the row(s) in pixels. If the rows are not all the same height the return value is -1.
//Get a single row's height int height = Exceldoc1.GetRowHeight(3,1);
//Get the height of multiple rows int height = Exceldoc1.GetRowHeight(3,4);