我們新開始使用NPOI組件。ICellStyle FillForegroundColor自定義顏色比提供的命名顏色
我們有問題需要設置ICellStyle屬性的FillForegroundColor。
ICellStyle HeaderCellStyle = xssfworkbook.CreateCellStyle();
HeaderCellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.RED.index;
FillForegroundColor期望類型短。
我們如何設置不同的顏色,而不是在HSSFColor中使用顏色。
我們需要設置"RGB192:0:0"
以及我們如何做到這一點的ICellStyle財產FillForegroundColor
Colud有人幫助我們通過一些例子嗎?
鑄造我的風格'XSSFCellStyle'是所有我失蹤了。 –