This project has moved and is read-only. For the latest updates, please go here.

Is it possible to control font size in table cells

Oct 3, 2009 at 4:20 PM


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 !


Oct 3, 2009 at 5: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);


Oct 3, 2009 at 6:23 PM

hi Cathal

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