【发布时间】:2016-11-08 11:01:36
【问题描述】:
如何使用 npoi 使用 xssfworkbook 类在 cell backgroudn 中设置 RGB 颜色?
byte[] rgb = new byte[3] { 192, 50, 90 };
XSSFCellStyle HeaderCellStyle1 = (XSSFCellStyle)wb.CreateCellStyle();
HeaderCellStyle1.SetFillForegroundColor(new XSSFColor(new Color(255, 255, 255)));
我不想使用这种模式:
titlestyle.BottomBorderColor = IndexedColors.Grey25Percent.Index;
【问题讨论】:
标签: c# colors background rgb npoi