public interface TableShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends Shape<S,P>, PlaceableShape<S,P>
Modifier and Type | Method and Description |
---|---|
TableCell<S,P> |
getCell(int row, int col)
Gets a cell
(获取一个单元格)
|
double |
getColumnWidth(int idx)
Gets the width (in points) of the n-th column
(获取第 n 列的宽度(以磅为单位))
|
int |
getNumberOfColumns()
Return the maximum number of columns.
(返回最大列数。)
|
int |
getNumberOfRows()
Return the number of rows
(返回行数)
|
double |
getRowHeight(int row)
Gets the row height
(获取行高)
|
void |
setColumnWidth(int idx, double width)
Sets the width (in points) of the n-th column
(设置第 n 列的宽度(以磅为单位))
|
void |
setRowHeight(int row, double height)
Sets the row height.
(设置行高。)
|
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
int getNumberOfColumns()
int getNumberOfRows()
TableCell<S,P> getCell(int row, int col)
row
- the row index (0-based)
(row - 行索引(从 0 开始))
col
- the column index (0-based)
(col - 列索引(从 0 开始))
double getColumnWidth(int idx)
idx
- the column index (0-based)
(idx - 列索引(从 0 开始))
void setColumnWidth(int idx, double width)
idx
- the column index (0-based)
(idx - 列索引(从 0 开始))
width
- the width (in points)
(width - 宽度(以磅为单位))
double getRowHeight(int row)
row
- the row index (0-based)
(row - 行索引(从 0 开始))
void setRowHeight(int row, double height)
row
- the row index (0-based)
(row - 行索引(从 0 开始))
height
- the height to set (in points)
(height - 要设置的高度(以磅为单位))
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.