About setting color and height



i exported table to word and i want to keep the header color to "#9FABD2" this is #color code

please tell me how to set this color .

and how to find the height of cell or row

i tried this but ithink i am not getting proper height

builder.RowFormat.Height i am not getting proper height please tell me how to find exact height after inserting text


Cell color can be set like this:

cell.CellFormat.Shading.BackgroundPatternColor = ColorTranslator.FromHtml("#9FABD2");

row.RowFormat.Height returns row height in points. It should return the actual height. If you it is not returning what is expected please attach the example. We will try to find out what the problem is.