We're sorry Aspose doesn't work properply without JavaScript enabled.

How to set Table Cell background and Text colors

Hi.
Please explain how to add color in Table Cell ( background and Text Colors. ).
Sunil

Hi
You should use Font.Color to set color of text. Please see the following code. The code sets background color and text color of first cell of table.

// Open document
Document doc = new Document(@"Test208\in.doc");
// Get table
Table tab = doc.FirstSection.Body.Tables[0];
// Set backgroung of first cell