从XSSFCellStyle你可以得到的XSSFFont.从这一点,你可以得到的XSSFColor.最后,从XSSFColor中,您可以获得颜色信息,如ARGB Hex,RGB with Tint等.
您的代码看起来像:
XSSFCellStyle style = cell.getCellStyle();
XSSFFont font = style.getFont();
XSSFColor colour = font.getXSSFColour();
System.out.println("The colour is " + colour.getARGBHex());
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5627 次 |
| 最近记录: |