C# Word enlarge cell using paragraphs

65 Views Asked by At

I would like to enlarge a cell to a certain height by using paragraphs. i have tried working with height, but it always gives me the same height back, no matter how many paragraphs i insert. is there a way to determine the exact size?

var cell = table.Cell(1, 1);
var limitHeight = 6f;

while (cell.Height <= limitHeight)
{
    cell.Range.Text += "\r";
}

0

There are 0 best solutions below