org.apache.poi.ss.usermodel.CellStyle.getFillBackgroundColorColor()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.apache.poi.ss.usermodel.CellStyle.getFillBackgroundColorColor()方法的一些代码示例,展示了CellStyle.getFillBackgroundColorColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CellStyle.getFillBackgroundColorColor()方法的具体详情如下:
包路径:org.apache.poi.ss.usermodel.CellStyle
类名称:CellStyle
方法名:getFillBackgroundColorColor

CellStyle.getFillBackgroundColorColor介绍

[英]Gets the color object representing the current background fill, resolving indexes using the supplied workbook. This will work for both indexed and rgb defined colors.
[中]获取表示当前背景填充的颜色对象,使用提供的工作簿解析索引。这将适用于索引颜色和rgb定义的颜色。

代码示例

代码示例来源:origin: openl-tablets/openl-tablets

@Override
public short[] getFillBackgroundColor() {
  if (hasNoFill()) {
    return null;
  }
  return toRgb(
      xlsStyle.getFillBackgroundColorColor());
}

代码示例来源:origin: org.apache.poi/poi-examples

System.out.print("Format=" + style.getDataFormatString() + " ");
System.out.print("FG=" + renderColor(style.getFillForegroundColorColor()) + " ");
System.out.print("BG=" + renderColor(style.getFillBackgroundColorColor()) + " ");

相关文章

微信公众号

最新文章

更多