Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IWorksheet Interface > SetRowHeightInPixels Method : SetRowHeightInPixels(Int32,Int32,Double) Method
Starting row index.
No of Row to be set width.
Value in pixels to set.

SetRowHeightInPixels(Int32,Int32,Double) Method

Sets row height in pixels to the given number of rows from the specified row index.
Syntax
'Declaration
 
Overloads Sub SetRowHeightInPixels( _
   ByVal iStartRowIndex As Integer, _
   ByVal iCount As Integer, _
   ByVal value As Double _
) 
'Usage
 
Dim instance As IWorksheet
Dim iStartRowIndex As Integer
Dim iCount As Integer
Dim value As Double
 
instance.SetRowHeightInPixels(iStartRowIndex, iCount, value)
void SetRowHeightInPixels( 
   int iStartRowIndex,
   int iCount,
   double value
)

Parameters

iStartRowIndex
Starting row index.
iCount
No of Row to be set width.
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, 4, 150);
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also