public final class TableTools extends Object
| 构造器和说明 |
|---|
TableTools() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
BorderStyle borderStyle) |
static void |
borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
int size) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid |
getTblGrid(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType |
getTblLayout(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr |
getTcPr(org.apache.poi.xwpf.usermodel.XWPFTableCell cell) |
static void |
initBasicTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
int col,
float width,
TableStyle style) |
static boolean |
isInsideTable(org.apache.poi.xwpf.usermodel.XWPFRun run) |
static void |
mergeCellsHorizonal(org.apache.poi.xwpf.usermodel.XWPFTable table,
int row,
int fromCol,
int toCol) |
static void |
mergeCellsHorizontalWithoutRemove(org.apache.poi.xwpf.usermodel.XWPFTable table,
int row,
int fromCol,
int toCol) |
static void |
mergeCellsVertically(org.apache.poi.xwpf.usermodel.XWPFTable table,
int col,
int fromRow,
int toRow) |
static int |
obtainColumnSize(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static int |
obtainRowSize(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static void |
setBorder(FourthConsumer<org.apache.poi.xwpf.usermodel.XWPFTable.XWPFBorderType,Integer,Integer,String> consumer,
BorderStyle border) |
static void |
setWidth(org.apache.poi.xwpf.usermodel.XWPFTable table,
String width,
int[] colWidths) |
static void |
styleTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
TableStyle style) |
static void |
styleTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
CellStyle cellStyle) |
static void |
styleTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
RowStyle rowStyle) |
static void |
widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
float[] colWidths)
已过时。
|
static void |
widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
float widthCM,
int cols)
已过时。
|
public static void mergeCellsHorizonal(org.apache.poi.xwpf.usermodel.XWPFTable table,
int row,
int fromCol,
int toCol)
public static void mergeCellsHorizontalWithoutRemove(org.apache.poi.xwpf.usermodel.XWPFTable table,
int row,
int fromCol,
int toCol)
public static void mergeCellsVertically(org.apache.poi.xwpf.usermodel.XWPFTable table,
int col,
int fromRow,
int toRow)
public static void setWidth(org.apache.poi.xwpf.usermodel.XWPFTable table,
String width,
int[] colWidths)
public static void borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
BorderStyle borderStyle)
public static void borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
int size)
public static void setBorder(FourthConsumer<org.apache.poi.xwpf.usermodel.XWPFTable.XWPFBorderType,Integer,Integer,String> consumer, BorderStyle border)
public static void initBasicTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
int col,
float width,
TableStyle style)
public static boolean isInsideTable(org.apache.poi.xwpf.usermodel.XWPFRun run)
public static void styleTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
TableStyle style)
public static void styleTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
RowStyle rowStyle)
public static void styleTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
CellStyle cellStyle)
public static int obtainRowSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static int obtainColumnSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid getTblGrid(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType getTblLayout(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr getTcPr(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
@Deprecated public static void widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths)
@Deprecated public static void widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float widthCM, int cols)
Copyright © 2021. All rights reserved.