nopi 可以自定義字體顏色嗎? 要怎麼操作
((XSSFColor)font.Color).SetRgb(new byte[] { 123,104,238});
// 创建字体样式
IFont font = workbook.CreateFont();
font.Color = IndexedColors.Red.Index; // 设置字体颜色为红色
// 创建单元格样式
ICellStyle cellStyle = workbook.CreateCellStyle();
cellStyle.SetFont(font);
// 创建单元格并设置样式
IRow row = sheet.CreateRow(0);
ICell cell = row.CreateCell(0);
cell.SetCellValue("Hello, NPOI!");
cell.CellStyle = cellStyle;