Is it possible to control font size in table cells

Oct 3, 2009 at 3:20 PM

Hi!

I am trying to append data to cells in a table already existing in the document. Just wanted to know if its possible to change the font size while appending the data to the cells.

Thanks in Advance !

Naveen

Coordinator
Oct 3, 2009 at 4:12 PM
Hi naveenagg,

please try the below. I wrote this code from memory but I believe it will compile.

using(DocX document = DocX.Load("Test.docx"))
{
    Table t = document.Tables[0];
    Paragraph cell1 = t.Rows[0].Cells[0];

    cell1.Append("This is really big").FontSize(30);

    document.Save();
}

Cathal
Oct 3, 2009 at 5:23 PM

hi Cathal

Thanks a lot! It worked without problem. Really sorry that i didnt try !