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

Free Support Forum - aspose.com

Text colors

hello, is it possible to set 2 text colors in the same cell ?

I can do it in Excel 2007 but I can't figure out how to do it in aspose cells.

Any clue?

Thank you.

This message was posted using Aspose.Live 2 Forum

Hi Benoit,

If following is the case:

this is only a comment text

Please use the following code snippet to achive this.

Cell cell = sheet.Cells[2,0];
cell.PutValue("this is only a comment text");
Characters chars = cell.Characters(0, 12);
chars.Font.Color = Color.Red;


Thanks Salman, it did the trick!