| 程序包 | 说明 |
|---|---|
| org.anyline.office.docx.entity |
| 限定符和类型 | 方法和说明 |
|---|---|
Wtc |
Wtable.addText(int row,
int col,
String text)
在row行col列原有基础上追加文本
|
Wtc |
Wtc.addText(String text) |
Wtc |
Wtc.bottom()
当前单元格 下方单元格
|
Wtc |
Wtc.clone(boolean content)
复制一列
|
Wtc |
Wtr.getTc(int index) |
Wtc |
Wtable.getTc(int row,
int col)
获取row行col列位置的单元格
|
Wtc |
Wtr.getTcWithColspan(int index,
boolean prev)
获取单元格,计算合并列
|
Wtc |
Wtc.left()
当前单元格 左侧单元格
|
Wtc |
Wtc.removeBackgroundColor()
清除背景色
|
Wtc |
Wtable.removeBackgroundColor(int row,
int col)
清除单元格背景色
|
Wtc |
Wtc.removeBorder()
删除所有
|
Wtc |
Wtable.removeBorder(int row,
int col)
清除单元格所有边框
|
Wtc |
Wtc.removeBottomBorder()
删除下边框
|
Wtc |
Wtable.removeBottomBorder(int row,
int col)
清除单元格下边框
|
Wtc |
Wtc.removeColor()
清除颜色
|
Wtc |
Wtable.removeColor(int row,
int col)
清除单元格颜色
|
Wtc |
Wtc.removeLeftBorder()
删除左边框
|
Wtc |
Wtable.removeLeftBorder(int row,
int col)
清除单元格左边框
|
Wtc |
Wtc.removeRightBorder()
删除右边框
|
Wtc |
Wtable.removeRightBorder(int row,
int col)
清除单元格右边框
|
Wtc |
Wtc.removeStyle()
清除样式
|
Wtc |
Wtable.removeStyle(int row,
int col)
清除单元格样式
|
Wtc |
Wtc.removeTl2brBorder()
删除左上至右下分隔线
|
Wtc |
Wtable.removeTl2brBorder(int row,
int col)
清除单元格左上到右下边框
|
Wtc |
Wtc.removeTopBorder()
删除上边框
|
Wtc |
Wtable.removeTopBorder(int row,
int col)
清除单元格上边框
|
Wtc |
Wtc.removeTr2blBorder()
删除右上至左下分隔线
|
Wtc |
Wtable.removeTr2blBorder(int row,
int col)
清除单元格右上到左下边框
|
Wtc |
Wtable.replace(int row,
int col,
String src,
String tar)
替换单元格内容
|
Wtc |
Wtc.replace(String target,
String replacement)
文本替换,不限层级查的所有t标签
|
Wtc |
Wtc.right()
当前单元格 右侧单元格
|
Wtc |
Wtable.setAlign(int row,
int col,
String align)
设置单元格内容水平对齐方式
|
Wtc |
Wtc.setAlign(String align) |
Wtc |
Wtable.setBackgroundColor(int row,
int col,
String color)
设置单元格背景色
|
Wtc |
Wtc.setBackgroundColor(String color)
背景色
|
Wtc |
Wtc.setBold() |
Wtc |
Wtc.setBold(boolean bold)
粗体
|
Wtc |
Wtable.setBold(int row,
int col) |
Wtc |
Wtable.setBold(int row,
int col,
boolean bold)
粗体
|
Wtc |
Wtc.setBorder()
设置上下左右默认边框
|
Wtc |
Wtable.setBorder(int row,
int col)
设置单元格默认边框
|
Wtc |
Wtable.setBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtc.setBorder(int size,
String color,
String style)
设置上下左右边框
|
Wtc |
Wtc.setBorder(String side,
String style) |
Wtc |
Wtc.setBottomBorder()
设置下默认边框
|
Wtc |
Wtable.setBottomBorder(int row,
int col) |
Wtc |
Wtable.setBottomBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtc.setBottomBorder(int size,
String color,
String style)
设置下边框
|
Wtc |
Wtc.setBottomPadding(double padding)
设置下边距
|
Wtc |
Wtc.setBottomPadding(int padding)
设置下边距
|
Wtc |
Wtable.setBottomPadding(int row,
int col,
double padding) |
Wtc |
Wtable.setBottomPadding(int row,
int col,
int padding)
设置单元格下边距
|
Wtc |
Wtable.setBottomPadding(int row,
int col,
String padding)
设置单元格下边距
|
Wtc |
Wtc.setBottomPadding(String padding)
设置下边距
|
Wtc |
Wtable.setColor(int row,
int col,
String color) |
Wtc |
Wtc.setColor(String color) |
Wtc |
Wtable.setFont(int row,
int col,
String size,
String eastAsia,
String ascii,
String hint)
设置单元格 字体
|
Wtc |
Wtc.setFont(String size,
String eastAsia,
String ascii,
String hint) |
Wtc |
Wtable.setFontFamily(int row,
int col,
String font)
设置单元格字体
|
Wtc |
Wtc.setFontFamily(String font) |
Wtc |
Wtable.setFontSize(int row,
int col,
String size)
设置单元格字号
|
Wtc |
Wtc.setFontSize(String size) |
Wtc |
Wtc.setHtml(org.dom4j.Element html) |
Wtc |
Wtc.setHtml(String html) |
Wtc |
Wtc.setItalic() |
Wtc |
Wtc.setItalic(boolean italic)
斜体
|
Wtc |
Wtable.setItalic(int row,
int col) |
Wtc |
Wtable.setItalic(int row,
int col,
boolean italic)
斜体
|
Wtc |
Wtc.setLeftBorder()
设置左默认边框
|
Wtc |
Wtable.setLeftBorder(int row,
int col) |
Wtc |
Wtable.setLeftBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtc.setLeftBorder(int size,
String color,
String style)
设置左边框
|
Wtc |
Wtc.setLeftPadding(double padding)
设置左边距
|
Wtc |
Wtc.setLeftPadding(int padding)
设置左边距
|
Wtc |
Wtable.setLeftPadding(int row,
int col,
double padding) |
Wtc |
Wtable.setLeftPadding(int row,
int col,
int padding) |
Wtc |
Wtable.setLeftPadding(int row,
int col,
String padding) |
Wtc |
Wtc.setLeftPadding(String padding)
设置左边距
|
Wtc |
Wtc.setPadding(double padding) |
Wtc |
Wtc.setPadding(int padding) |
Wtc |
Wtable.setPadding(int row,
int col,
double padding) |
Wtc |
Wtable.setPadding(int row,
int col,
int padding) |
Wtc |
Wtable.setPadding(int row,
int col,
String padding) |
Wtc |
Wtable.setPadding(int row,
int col,
String side,
double padding) |
Wtc |
Wtable.setPadding(int row,
int col,
String side,
int padding) |
Wtc |
Wtable.setPadding(int row,
int col,
String side,
String padding) |
Wtc |
Wtc.setPadding(String padding) |
Wtc |
Wtc.setPadding(String side,
double padding) |
Wtc |
Wtc.setPadding(String side,
int padding) |
Wtc |
Wtc.setPadding(String side,
String padding) |
Wtc |
Wtc.setRightBorder()
设置右默认边框
|
Wtc |
Wtable.setRightBorder(int row,
int col) |
Wtc |
Wtable.setRightBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtc.setRightBorder(int size,
String color,
String style)
设置右边框
|
Wtc |
Wtc.setRightPadding(double padding)
设置右边距
|
Wtc |
Wtc.setRightPadding(int padding)
设置右边距
|
Wtc |
Wtable.setRightPadding(int row,
int col,
double padding) |
Wtc |
Wtable.setRightPadding(int row,
int col,
int padding) |
Wtc |
Wtable.setRightPadding(int row,
int col,
String padding) |
Wtc |
Wtc.setRightPadding(String padding)
设置右边距
|
Wtc |
Wtc.setStrike() |
Wtc |
Wtc.setStrike(boolean strike)
删除线
|
Wtc |
Wtable.setStrike(int row,
int col) |
Wtc |
Wtable.setStrike(int row,
int col,
boolean strike)
删除线
|
Wtc |
Wtc.setText(String text) |
Wtc |
Wtc.setText(String text,
Map<String,String> styles) |
Wtc |
Wtc.setTl2brBorder()
设置左上至右下默认边框
|
Wtc |
Wtable.setTl2brBorder(int row,
int col) |
Wtc |
Wtable.setTl2brBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtable.setTl2brBorder(int row,
int col,
String top,
String bottom) |
Wtc |
Wtc.setTl2brBorder(int size,
String color,
String style)
设置左上至右下边框
|
Wtc |
Wtc.setTl2brBorder(String top,
String bottom)
设置 左上 至 右下分隔线
|
Wtc |
Wtc.setTopBorder()
设置上默认边框
|
Wtc |
Wtable.setTopBorder(int row,
int col) |
Wtc |
Wtable.setTopBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtc.setTopBorder(int size,
String color,
String style)
设置上边框
|
Wtc |
Wtc.setTopPadding(double padding)
设置上边距
|
Wtc |
Wtc.setTopPadding(int padding)
设置上边距
|
Wtc |
Wtable.setTopPadding(int row,
int col,
double padding) |
Wtc |
Wtable.setTopPadding(int row,
int col,
int padding) |
Wtc |
Wtable.setTopPadding(int row,
int col,
String padding) |
Wtc |
Wtc.setTopPadding(String padding)
设置上边距
|
Wtc |
Wtc.setTr2blBorder()
设置 左上 至 右下默认样式分隔线
|
Wtc |
Wtable.setTr2blBorder(int row,
int col) |
Wtc |
Wtable.setTr2blBorder(int row,
int col,
int size,
String color,
String style) |
Wtc |
Wtable.setTr2blBorder(int row,
int col,
String top,
String bottom) |
Wtc |
Wtc.setTr2blBorder(int size,
String color,
String style)
设置右上至左下边框
|
Wtc |
Wtc.setTr2blBorder(String top,
String bottom)
设置 右上 至 左下分隔线
|
Wtc |
Wtc.setUnderline() |
Wtc |
Wtc.setUnderline(boolean underline)
下划线
|
Wtc |
Wtable.setUnderline(int row,
int col) |
Wtc |
Wtable.setUnderline(int row,
int col,
boolean underline)
下划线
|
Wtc |
Wtable.setVerticalAlign(int row,
int col,
String align)
设置单元格内容垂直对齐方式
|
Wtc |
Wtc.setVerticalAlign(String align) |
Wtc |
Wtc.setWidth(double width) |
Wtc |
Wtc.setWidth(int width) |
Wtc |
Wtable.setWidth(int row,
int col,
double width) |
Wtc |
Wtable.setWidth(int row,
int col,
int width) |
Wtc |
Wtable.setWidth(int row,
int col,
String width) |
Wtc |
Wtc.setWidth(String width) |
Wtc |
Wtc.top()
当前单元格 上方单元格
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Wtc> |
Wtr.getTcs() |
List<Wtc> |
Wtr.getWtcs() |
Copyright © 2023. All rights reserved.