Syncfusion.XlsIO.Base
Example 


RowHeight Property

Gets or sets the height of all the rows in the range, measured in points.
Syntax
'Declaration
 
Property RowHeight As Double
'Usage
 
Dim instance As IRange
Dim value As Double
 
instance.RowHeight = value
 
value = instance.RowHeight
double RowHeight {get; set;}
Remarks
Gets Double.MinValue if the rows in the specified Range aren't all the same height. Maximum Row height can be 409 value, minimum is zero.
Example
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Set text
            worksheet["A1"].Text = "Test";
            
            //Set alignment
            worksheet["A1"].VerticalAlignment = ExcelVAlign.VAlignTop;
            
            //Set row height
            worksheet["A1"].RowHeight = 30;
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close(); 
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also