Free Support Forum - aspose.com

FontBold problem

When I set FontBold property to true for a cell , all cells from the table are bold. I tryed than to set FontBold to false for the rest of the cells...but the result is the same. Do you know what the problem is?

Here is the code:

if (row == 0)

{

table.GetCell(col,row).TextFrame.Paragraphs[0].Portions[0].FontBold = true;

}

else

{

table.GetCell(col,row).TextFrame.Paragraphs[0].Portions[0].FontBold = false;

}

Thx.

Are you sure all cells in a table have only one paragraph and only one portion?