ICellStyle style = row.Sheet.Workbook.CreateCellStyle();
//style.FillForegroundColor = NPOI.SS.UserModel.IndexedColors.Red.Index;
//style.FillPattern = FillPattern.SolidForeground;
style.FillForegroundColor = 0;
style.FillPattern = FillPattern.SolidForeground;
((XSSFColor)style.FillForegroundColorColor).SetRgb(new byte[] { 0, 176, 240 });
byte[] rgb = new byte[3];
rgb[0] = (byte)242; // red
rgb[1] = (byte)10; // green
rgb[2] = (byte)10; // blue
XSSFColor myColor = new XSSFColor(rgb);
var font = (XSSFFont)row.Sheet.Workbook.CreateFont();
font.IsBold = true;
font.SetColor(myColor);
font.FontName = "Arial";
font.FontHeightInPoints = 10;
style.SetFont(font);
row.Cells[4].CellStyle = style;
12-11
565
