Please- tell me about RowHeight


#1

Hi, can you tell me the RowHeight we can get at Rows added at run-time too?
I have templet which have rows with different height, when I execute my programm:


for(int i=0;i<10;i++)
{
Range rng=sheet.Cells.CreateRange(i,0,1,1);
Console.WriteLine(rng.RowHeight);
}

It’s printing:
12.75
12.75
12.75
12.75
12.75
12.75


#2

To get row height, please use Cells.GetRowHeight method.

for(int i=0;i<10;i++)
{
int rowHeight = sheet.Cells.GetRowHeight(i);
Console.WriteLine(rowHeight);
}