| 程序包 | 说明 |
|---|---|
| org.ofdrw.layout.areaholder | |
| org.ofdrw.layout.element.canvas |
| 限定符和类型 | 方法和说明 |
|---|---|
CellContentDrawer |
AreaHolderContext.getCell(String areaName)
获取指定名称的 区域单元格对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
CellContentDrawer |
Cell.getDrawer()
获取单元格内容绘制器
|
CellContentDrawer |
CellContentDrawer.setBlob(Boolean bolb)
已过时。
单词错误
setBold(Boolean)
设置 是否加粗 |
CellContentDrawer |
CellContentDrawer.setBold(Boolean bold)
设置 是否加粗
|
CellContentDrawer |
CellContentDrawer.setColor(String color)
设置单元格颜色
|
CellContentDrawer |
CellContentDrawer.setDeleteLine(boolean deleteLine)
设置是否开启删除线
|
CellContentDrawer |
CellContentDrawer.setFont(String fontName,
Path fontPath)
设置单元格绘制器使用的外部字体
注意OFDRW不会提供任何字体裁剪功能,您的字体文件将直接加入OFD文件中,这可能造成文件体积剧增。
|
CellContentDrawer |
CellContentDrawer.setFontName(String fontName)
设置字体名称
|
CellContentDrawer |
CellContentDrawer.setFontSize(double fontSize)
设置字号
|
CellContentDrawer |
CellContentDrawer.setItalic(Boolean italic)
设置 是否斜体
|
CellContentDrawer |
CellContentDrawer.setLetterSpacing(Double letterSpacing)
设置 文字之间的间距
|
CellContentDrawer |
CellContentDrawer.setLineSpace(Double lineSpace)
设置 行间距
|
CellContentDrawer |
CellContentDrawer.setTextAlign(TextAlign textAlign)
设置 文字对齐方式
|
CellContentDrawer |
CellContentDrawer.setUnderline(boolean underline)
设置是否开启下划线
|
CellContentDrawer |
CellContentDrawer.setValue(Path imgPath)
设置图片
图片宽度与高度通过
DrawContext.mm(int) } 方法转换为毫米 |
CellContentDrawer |
CellContentDrawer.setValue(Path imgPath,
double w,
double h)
设置图片
|
CellContentDrawer |
CellContentDrawer.setValue(String value)
设置单元格文字内容
|
CellContentDrawer |
CellContentDrawer.setVerticalAlign(VerticalAlign verticalAlign)
设置 文字垂直方向浮动方式
|
Copyright © 2024. All rights reserved.