类 Wtc
java.lang.Object
org.anyline.office.docx.entity.Welement
org.anyline.office.docx.entity.Wtc
-
字段概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明bottom()当前单元格 下方单元格clone(boolean content) 复制一列当前单元格内第一个书签名称当前单元格内所有书签名称int当前单元格合并列数量int当前单元格合并行数量,被合并返回-1宽度尺寸单位getWps()html(org.anyline.handler.Uploader uploader, int lvl) left()当前单元格 左侧单元格intintvoidreload()voidremove()清除背景色删除所有删除下边框清除颜色删除左边框删除右边框清除样式删除左上至右下分隔线删除上边框删除右上至左下分隔线文本替换,不限层级查的所有t标签right()当前单元格 右侧单元格setBackgroundColor(String color) 背景色setBold()setBold(boolean bold) 粗体设置上下左右默认边框设置上下左右边框设置下默认边框setBottomBorder(int size, String color, String style) 设置下边框setBottomPadding(double padding) 设置下边距setBottomPadding(int padding) 设置下边距setBottomPadding(String padding) 设置下边距voidsetColspan(int colspan) setFontFamily(String font) setFontSize(String size) setHtml(org.dom4j.Element html) setItalic(boolean italic) 斜体设置左默认边框setLeftBorder(int size, String color, String style) 设置左边框setLeftPadding(double padding) 设置左边距setLeftPadding(int padding) 设置左边距setLeftPadding(String padding) 设置左边距setPadding(double padding) setPadding(int padding) setPadding(String padding) setPadding(String side, double padding) setPadding(String side, int padding) setPadding(String side, String padding) 设置右默认边框setRightBorder(int size, String color, String style) 设置右边框setRightPadding(double padding) 设置右边距setRightPadding(int padding) 设置右边距setRightPadding(String padding) 设置右边距voidsetRowspan(int rowspan) setStrike(boolean strike) 删除线设置左上至右下默认边框setTl2brBorder(int size, String color, String style) 设置左上至右下边框setTl2brBorder(String top, String bottom) 设置 左上 至 右下分隔线设置上默认边框setTopBorder(int size, String color, String style) 设置上边框setTopPadding(double padding) 设置上边距setTopPadding(int padding) 设置上边距setTopPadding(String padding) 设置上边距设置 左上 至 右下默认样式分隔线setTr2blBorder(int size, String color, String style) 设置右上至左下边框setTr2blBorder(String top, String bottom) 设置 右上 至 左下分隔线setUnderline(boolean underline) 下划线setVerticalAlign(String align) setWidth(double width) setWidth(int width) voidsetWidthUnit(String widthUnit) styles()top()当前单元格 上方单元格从类继承的方法 org.anyline.office.docx.entity.Welement
bookmarks, child, color, getDoc, getSrc, getText, getTextList, getTexts, html, html, html, index, placeholders, placeholders, placeholders, placeholders, removeContent, replace, setDoc, setSrc, styles, t
-
构造器详细资料
-
Wtc
-
-
方法详细资料
-
reload
public void reload() -
getBookmarks
当前单元格内所有书签名称- 返回:
- list
-
getBookmark
当前单元格内第一个书签名称- 返回:
- String
-
setBorder
-
getWidthUnit
宽度尺寸单位- 返回:
- String
-
setWidthUnit
-
setColspan
public void setColspan(int colspan) -
setRowspan
public void setRowspan(int rowspan) -
getColspan
public int getColspan()当前单元格合并列数量- 返回:
- colspan
-
parseColspan
public int parseColspan() -
getRowspan
public int getRowspan()当前单元格合并行数量,被合并返回-1- 返回:
- rowspan
-
parseRowspan
public int parseRowspan()- 返回:
- 2:合并其他行 1:不合并 0:被合并
-
left
当前单元格 左侧单元格- 返回:
- wtc
-
right
当前单元格 右侧单元格- 返回:
- wtc
-
bottom
当前单元格 下方单元格- 返回:
- wtc
-
top
当前单元格 上方单元格- 返回:
- wtc
-
removeLeftBorder
删除左边框- 返回:
- wtc
-
removeRightBorder
删除右边框- 返回:
- wtc
-
removeTopBorder
删除上边框- 返回:
- wtc
-
removeBottomBorder
删除下边框- 返回:
- wtc
-
removeTl2brBorder
删除左上至右下分隔线- 返回:
- wtc
-
removeTr2blBorder
删除右上至左下分隔线- 返回:
- wtc
-
removeBorder
删除所有- 返回:
- wtc
-
setBorder
设置上下左右默认边框- 返回:
- wtc
-
setBorder
设置上下左右边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setLeftBorder
设置左默认边框- 返回:
- wtc
-
setRightBorder
设置右默认边框- 返回:
- wtc
-
setTopBorder
设置上默认边框- 返回:
- wtc
-
setBottomBorder
设置下默认边框- 返回:
- wtc
-
setTl2brBorder
设置左上至右下默认边框- 返回:
- wtc
-
setTl2brBorder
设置 左上 至 右下分隔线- 参数:
top- 右上内容bottom- 左下内容- 返回:
- wtc
-
setTr2blBorder
设置 左上 至 右下默认样式分隔线- 返回:
- wtc
-
setTr2blBorder
设置 右上 至 左下分隔线- 参数:
top- 左上内容bottom- 右下内容- 返回:
- wtc
-
setLeftBorder
设置左边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setRightBorder
设置右边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setTopBorder
设置上边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setBottomBorder
设置下边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setTl2brBorder
设置左上至右下边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setTr2blBorder
设置右上至左下边框- 参数:
size- 边框宽度(1px)color- 颜色style- 样式(默认single)- 返回:
- wtc
-
setBottomPadding
设置下边距- 参数:
padding- 边距- 返回:
- wtc
-
setBottomPadding
设置下边距- 参数:
padding- 边距- 返回:
- wtc
-
setBottomPadding
设置下边距- 参数:
padding- 边距- 返回:
- wtc
-
setTopPadding
设置上边距- 参数:
padding- 边距- 返回:
- wtc
-
setTopPadding
设置上边距- 参数:
padding- 边距- 返回:
- wtc
-
setTopPadding
设置上边距- 参数:
padding- 边距- 返回:
- wtc
-
setRightPadding
设置右边距- 参数:
padding- 边距- 返回:
- wtc
-
setRightPadding
设置右边距- 参数:
padding- 边距- 返回:
- wtc
-
setRightPadding
设置右边距- 参数:
padding- 边距- 返回:
- wtc
-
setLeftPadding
设置左边距- 参数:
padding- 边距- 返回:
- wtc
-
setLeftPadding
设置左边距- 参数:
padding- 边距- 返回:
- wtc
-
setLeftPadding
设置左边距- 参数:
padding- 边距- 返回:
- wtc
-
setPadding
-
setPadding
-
setPadding
-
setPadding
-
setPadding
-
setPadding
-
setColor
-
setFont
-
setFontSize
-
setFontFamily
-
setWidth
-
setWidth
-
setWidth
-
setAlign
-
setVerticalAlign
-
setBackgroundColor
背景色- 参数:
color- 颜色- 返回:
- Wtc
-
removeStyle
清除样式- 返回:
- Wtc
-
removeBackgroundColor
清除背景色- 返回:
- Wtc
-
removeColor
清除颜色- 返回:
- wtc
-
setBold
粗体- 参数:
bold- 是否- 返回:
- Wtc
-
setBold
-
setUnderline
下划线- 参数:
underline- 是否- 返回:
- Wtc
-
setUnderline
-
setStrike
删除线- 参数:
strike- 是否- 返回:
- Wtc
-
setStrike
-
setItalic
斜体- 参数:
italic- 是否- 返回:
- Wtc
-
setItalic
-
getWps
-
setHtml
-
setHtml
-
remove
public void remove() -
setText
-
setText
-
addText
-
replace
文本替换,不限层级查的所有t标签- 参数:
target- 查找targetreplacement- 替换成replacement- 返回:
- Wtc
-
styles
-
html
-
clone
复制一列- 参数:
content- 是复制空其中内容- 返回:
- wtr
-