Syncfusion.XlsIO.Base
Example 


One-based row index.
Height to set.

SetRowHeight Method

Sets row height for the specified row.
Syntax
'Declaration
 
Sub SetRowHeight( _
   ByVal iRow As Integer, _
   ByVal value As Double _
) 
'Usage
 
Dim instance As IWorksheet
Dim iRow As Integer
Dim value As Double
 
instance.SetRowHeight(iRow, value)
void SetRowHeight( 
   int iRow,
   double value
)

Parameters

iRow
One-based row index.
value
Height to set.
Example
The following code illustrates how to set height for a row.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Set row height
            worksheet.SetRowHeight(3, 45);
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also