How to set backcolor to table cell?

i want to set different back color to each cell in one table ?

which method i have to use ?

one more i want to insert horizontal or vertical line in doc then what i have to do?

Hi,

Basically, you should use Shading object (returned by the DocumentBuilder.CellFormat.Shading property). Please see here for an example:

https://forum.aspose.com/t/128569

Regarding your second question, you can use a table cell and make visible one of its borders.