Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IWorksheet Interface > SetRowHeightInPixels Method : SetRowHeightInPixels(Int32,Double) Method
One-based row index.
Value in pixels to set.

SetRowHeightInPixels(Int32,Double) Method

Sets row height in pixels for the specified row.
Syntax
'Declaration
 
Overloads Sub SetRowHeightInPixels( _
   ByVal iRowIndex As Integer, _
   ByVal value As Double _
) 
'Usage
 
Dim instance As IWorksheet
Dim iRowIndex As Integer
Dim value As Double
 
instance.SetRowHeightInPixels(iRowIndex, value)
void SetRowHeightInPixels( 
   int iRowIndex,
   double value
)

Parameters

iRowIndex
One-based row index.
value
Value in pixels 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.SetRowHeightInPixels(3, 150);
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also