| 程序包 | 说明 |
|---|---|
| org.anyline.office.docx.entity |
| 限定符和类型 | 方法和说明 |
|---|---|
Wtable |
Wtable.addColumns(int qty)
追加列, 每一行追加,追加的列将复制前一列的样式(背景色、字体等)
|
Wtable |
Wtable.addRows(int qty)
追加qty行
|
Wtable |
Wtable.addRows(int index,
int qty)
追加行,追加的行将复制上一行的样式(背景色、字体等)
|
Wtable |
Wtable.append(int qty) |
Wtable |
Wtable.append(Wtr template,
int qty) |
Wtable |
Wtable.clone(boolean content) |
Wtable |
Wtr.getParent() |
Wtable |
Wtable.insert(int qty)
在最后位置插入qty行,以最后一行为模板
|
Wtable |
Wtable.insert(Integer index,
int qty)
在index位置插入qty行,以原来index位置行为模板,原来index位置以下行的挤到下一行
|
Wtable |
Wtable.insert(Integer index,
Wtr template,
int qty)
在index位置插入行,原来index位置的行被挤到下一行,以template为模板
|
Wtable |
Wtable.insertColumns(int col,
int qty)
插入列
追加的列将复制前一列的样式(背景色、字体等)
如果col=0则将制后一列的样式(背景色、字体等)
|
Wtable |
Wtable.insertRows(Integer index,
int qty)
追加行,追加的行将复制上一行的样式(背景色、字体等)
|
Wtable |
Wtable.insertRows(Wtr template,
Integer index,
int qty)
以template为模板 在index位置插入qty行,以原来index位置行为模板,原来index位置以下行的挤到下一行
|
Wtable |
Wtable.merge(int row,
int col,
int rowspan,
int colspan)
合并行列
|
Wtable |
Wtable.removeBackgroundColor() |
Wtable |
Wtable.removeBorder() |
Wtable |
Wtable.removeBottomBorder()
清除表格下边框
|
Wtable |
Wtable.removeColor() |
Wtable |
Wtable.removeInsideHBorder()
清除表格水平边框
|
Wtable |
Wtable.removeInsideVBorder()
清除表格垂直边框
|
Wtable |
Wtable.removeLeftBorder()
清除表格左边框
|
Wtable |
Wtable.removeLeftBorder(int col)
删除整列的左边框
|
Wtable |
Wtable.removeRightBorder()
清除表格右边框
|
Wtable |
Wtable.removeRightBorder(int col)
删除整列的右边框
|
Wtable |
Wtable.removeStyle() |
Wtable |
Wtable.removeTcBackgroundColor()
清除所有单元格背景色
|
Wtable |
Wtable.removeTcBorder()
清除所有单元格边框
|
Wtable |
Wtable.removeTcColor()
清除所有单元格颜色
|
Wtable |
Wtable.removeTl2brBorder() |
Wtable |
Wtable.removeTopBorder()
清除表格上边框
|
Wtable |
Wtable.removeTr2blBorder() |
Wtable |
Wtable.replace(String src,
String tar) |
Wtable |
Wtable.setAlign(String align)
设置整个表格单元格内容水平对齐方式
|
Wtable |
Wtable.setBackgroundColor(String color) |
Wtable |
Wtable.setBold() |
Wtable |
Wtable.setBold(boolean bold) |
Wtable |
Wtable.setBorder(int size,
String color,
String style)
设置表格边框
|
Wtable |
Wtable.setBottomBorder(int size,
String color,
String style)
设置表格下边框
|
Wtable |
Wtable.setBottomPadding(double padding) |
Wtable |
Wtable.setBottomPadding(int padding) |
Wtable |
Wtable.setBottomPadding(String padding)
设置整个表格中所有单元格下边距
|
Wtable |
Wtable.setCellBorder()
设置所有单元格默认边框
|
Wtable |
Wtable.setHtml(int row,
int col,
String html)
设置row行col列的文本 支持html标签
|
Wtable |
Wtable.setItalic() |
Wtable |
Wtable.setItalic(boolean italic) |
Wtable |
Wtable.setLeftBorder(int cols,
int size,
String color,
String style)
设置所有行指定列的左边框
|
Wtable |
Wtable.setLeftBorder(int size,
String color,
String style)
设置表格左边框
|
Wtable |
Wtable.setLeftPadding(double padding) |
Wtable |
Wtable.setLeftPadding(int padding) |
Wtable |
Wtable.setLeftPadding(String padding) |
Wtable |
Wtable.setPadding(double padding) |
Wtable |
Wtable.setPadding(int padding) |
Wtable |
Wtable.setPadding(String padding) |
Wtable |
Wtable.setPadding(String side,
double padding) |
Wtable |
Wtable.setPadding(String side,
int padding) |
Wtable |
Wtable.setPadding(String side,
String padding) |
Wtable |
Wtable.setRightBorder(int cols,
int size,
String color,
String style)
设置所有行指定列的右边框
|
Wtable |
Wtable.setRightBorder(int size,
String color,
String style)
设置表格右边框
|
Wtable |
Wtable.setRightPadding(double padding) |
Wtable |
Wtable.setRightPadding(int padding) |
Wtable |
Wtable.setRightPadding(String padding) |
Wtable |
Wtable.setStrike() |
Wtable |
Wtable.setStrike(boolean strike) |
Wtable |
Wtable.setText(int row,
int col,
String text)
设置row行col列的文本
|
Wtable |
Wtable.setText(int row,
int col,
String text,
Map<String,String> styles)
设置row行col列的文本 并设置样式
|
Wtable |
Wtable.setTopBorder(int size,
String color,
String style)
设置表格上边框
|
Wtable |
Wtable.setTopPadding(double padding) |
Wtable |
Wtable.setTopPadding(int padding) |
Wtable |
Wtable.setTopPadding(String padding) |
Wtable |
Wtable.setVerticalAlign(String align)
设置整个表格单元格内容垂直对齐方式
|
Wtable |
Wtable.setWidth(double width)
设置表格宽度 默认px
|
Wtable |
Wtable.setWidth(int width)
设置表格宽度 默认px
|
Wtable |
Wtable.setWidth(int cols,
double width) |
Wtable |
Wtable.setWidth(int cols,
int width) |
Wtable |
Wtable.setWidth(int cols,
String width)
设置整列宽度
|
Wtable |
Wtable.setWidth(String width) |
Wtable |
WDocument.table(String bookmark)
读取书签所有的table
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Wtable> |
WDocument.tables() |
List<Wtable> |
WDocument.tables(boolean recursion)
获取body下的table
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.dom4j.Element |
WDocument.after(org.dom4j.Element point,
Wtable table) |
org.dom4j.Element |
WDocument.before(org.dom4j.Element point,
Wtable table) |
org.dom4j.Element |
WDocument.insert(org.dom4j.Element parent,
Wtable table) |
org.dom4j.Element |
WDocument.insert(int index,
org.dom4j.Element parent,
Wtable table) |
WDocument |
WDocument.remove(Wtable table) |
| 构造器和说明 |
|---|
Wtr(WDocument doc,
Wtable parent,
org.dom4j.Element src) |
Copyright © 2024. All rights reserved.