Hi Pedro,
Thank you for considering Aspose.
For applying font color, please use the flag.FontColor = true; before applying the style to the column. Please see the modified sample code as following,
Sample Code:
Aspose.Cells.Style style;
StyleFlag flag;
style = excelWorkbook.Styles[excelWorkbook.Styles.Add()];
style.Name = "TESTE";
style.Custom = "dd/mm/YYYY hh:mm:ss AM/PM";
style.Number = 49;
style.Font.Color = Color.Red;
flag = new StyleFlag();
//Flag to apply Number format
flag.NumberFormat = true;
//Flag to apply Font Color
flag.FontColor = true;
Thank You & Best Regards,
Nausherwan Aslam
Support Developer,
Aspose Sialkot Team
Contact Us