ICellStyle yellowStyle = workBook.CreateCellStyle(); //黄色
yellowStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index;
yellowStyle.FillPattern = FillPattern.SolidForeground;
ICellStyle yellowStyle = workBook.CreateCellStyle(); //黄色
yellowStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index;
yellowStyle.FillPattern = FillPattern.SolidForeground;
本文标题:NPOI导出Excel表格 填充单元格颜色
本文链接:https://www.haomeiwen.com/subject/ggjymctx.html
网友评论