小编PPa*_*mar的帖子

如何使用 xssfworkbook npoi 在字体中设置 RGB 颜色

如何使用 npoi在cell backgroudn使用类中设置 RGB 颜色xssfworkbook

byte[] rgb = new byte[3] { 192, 50, 90 };
XSSFCellStyle HeaderCellStyle1 = (XSSFCellStyle)wb.CreateCellStyle();
HeaderCellStyle1.SetFillForegroundColor(new XSSFColor(new Color(255, 255, 255)));
Run Code Online (Sandbox Code Playgroud)

我不想使用这种模式:

titlestyle.BottomBorderColor = IndexedColors.Grey25Percent.Index;
Run Code Online (Sandbox Code Playgroud)

c# rgb background colors npoi

5
推荐指数
1
解决办法
6304
查看次数

标签 统计

background ×1

c# ×1

colors ×1

npoi ×1

rgb ×1