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