NPOI导出Excel表格 填充单元格颜色

2019-10-21  本文已影响0人  慢慢来比较快_7644

ICellStyle yellowStyle = workBook.CreateCellStyle(); //黄色

 yellowStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index;

  yellowStyle.FillPattern = FillPattern.SolidForeground;

上一篇 下一篇

猜你喜欢

热点阅读