Hi,
I'm trying to change the color of all the borders of a table but it does not work , this is my sample code :
.....
IWTable table = section.AddTable();
table.ResetCells(3, 2);
table[0, 0].AddParagraph().AppendText("Item");
table[0, 1].AddParagraph().AppendText("Price($)");
table[1, 0].AddParagraph().AppendText("Items with same price");
table[1, 1].AddParagraph().AppendText("1000");
table[2, 0].AddParagraph().AppendText("Pomegranate");
table[2, 1].AddParagraph().AppendText("70");
for (int rowIndex = 0; rowIndex < 3; rowIndex++)
{
for (int colIndex = 0; colIndex < 2; colIndex++)
{
WTableCell cell = table.Rows[rowIndex].Cells[colIndex];
cell.CellFormat.Borders.Color = Color.Red; // does not work
}
is there a way to do that?
thank you