POI 中Cell的backgroundcolor和foregroundcolor
来源:互联网 发布:室内装修绘图软件 编辑:程序博客网 时间:2024/04/27 17:42
刚开始以为要获得cell的背景色是使用 getFillBackgroundColor()这个函数(这里返回的是调色板的索引,要获得RGB需要先获得系统的Pallete,然后在获得RGB)。结果出来的索引都是一样的,搜索了好一会,发现都没有自己要的答案,想想自己估计又犯了什么低级错误了,这个问题应该不是什么问题。果然在POI的文档里面,这个问题就已经陈述出来了:
public short getFillBackgroundColor()Get the background fill color. Note - many cells are actually filled with a foreground fill, not a background fill - see
getFillForegroundColor()
public short getFillForegroundColor()Get the foreground fill color. Many cells are filled with this, instead of a background color (
getFillBackgroundColor()
)这里写到许多cell其实是使用前景来填充的,而不是背景填充,所以应该要用getFillForegroundColor这个函数。当然目前还不是很了解background fill 和foreground fill。
- POI 中Cell的backgroundcolor和foregroundcolor
- #iOS开发笔记#iOS6及以下中,cell.backgroundColor设置失败的原因
- iOS开发中,tintColor和 backgroundColor的区别
- UITableViewCell的backgroundColor和backgroundView
- backgroundColor和background-color的区别
- POI取得Cell的值
- 【POI】自定义cell的颜色
- Flex中如何通过backgroundImage, backgroundColor和backgroundAlpha样式,设置VBox的背景图片和背景颜色以及改变透明度
- HTML布局中全透明div的backgroundColor样式
- POI操作Excel:cell的网线类型
- backgroundcolor
- UITableViewCell通过cell.backgroundColor设置背景颜色为什么没有效果
- ios 修改UITableViewCell的backgroundColor
- ios 修改UITableViewCell的backgroundColor
- POI格式化Cell样式
- POI格式化Cell样式
- Apache POI Copy Cell
- POI格式化Cell样式
- Android中级教程之----Log图文详解(Log.v,Log.d,Log.i,Log.w,Log.e)!
- VIM 用户手册 For Vim version 7.3. usr_03.txt
- Android应用的回收机制或者怎样让应用尽量不被kill
- nfs服务端停止,nfs客户端ll、df命令不可用的解决方法
- 联想R400“显示器驱动程序已停止响应 并且已成功恢复”问题故障处理方法
- POI 中Cell的backgroundcolor和foregroundcolor
- 面试之插曲
- VIM USER MANUAL For Vim version 7.3. *usr_toc.txt*
- 【集合】Vector存储类
- VIM 用户手册 For Vim version 7.3 *usr_01.txt*
- 一道算法题
- 多小第一场:hdu:4305(矩阵求生成树的个数+乘法逆元)
- LPC11XX 使用keil for arm 和j-link连接问题
- 怎样花两年时间去面试一个人