public class XSLFTable extends XSLFGraphicFrame implements Iterable<XSLFTableRow>, TableShape<XSLFShape,XSLFTextParagraph>
| Modifier and Type | Method and Description |
|---|---|
XSLFTableRow |
addRow() |
XSLFTableCell |
getCell(int row,
int col)
Gets a cell
|
double |
getColumnWidth(int idx)
Gets the width (in points) of the n-th column
|
CTTable |
getCTTable() |
int |
getNumberOfColumns()
Return the maximum number of columns.
|
int |
getNumberOfRows()
Return the number of rows
|
double |
getRowHeight(int row)
Gets the row height
|
List<XSLFTableRow> |
getRows() |
Iterator<XSLFTableRow> |
iterator() |
void |
mergeCells(int firstRow,
int lastRow,
int firstCol,
int lastCol)
Merge cells of a table
|
void |
setColumnWidth(int idx,
double width)
Sets the width (in points) of the n-th column
|
void |
setRowHeight(int row,
double height)
Sets the row height.
|
getAnchor, getFallbackPicture, getFlipHorizontal, getFlipVertical, getRotation, getShapeType, setAnchor, setFlipHorizontal, setFlipVertical, setRotationdraw, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getSheet, getXmlObject, isPlaceholder, setParent, setPlaceholderequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratordraw, getAnchor, getParent, getShapeId, getShapeName, getSheetgetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationpublic XSLFTableCell getCell(int row, int col)
TableShapegetCell in interface TableShape<XSLFShape,XSLFTextParagraph>row - the row index (0-based)col - the column index (0-based)public int getNumberOfColumns()
TableShapegetNumberOfColumns in interface TableShape<XSLFShape,XSLFTextParagraph>public int getNumberOfRows()
TableShapegetNumberOfRows in interface TableShape<XSLFShape,XSLFTextParagraph>public double getColumnWidth(int idx)
TableShapegetColumnWidth in interface TableShape<XSLFShape,XSLFTextParagraph>idx - the column index (0-based)public void setColumnWidth(int idx,
double width)
TableShapesetColumnWidth in interface TableShape<XSLFShape,XSLFTextParagraph>idx - the column index (0-based)width - the width (in points)public double getRowHeight(int row)
TableShapegetRowHeight in interface TableShape<XSLFShape,XSLFTextParagraph>row - the row index (0-based)public void setRowHeight(int row,
double height)
TableShapesetRowHeight in interface TableShape<XSLFShape,XSLFTextParagraph>row - the row index (0-based)height - the height to set (in points)public Iterator<XSLFTableRow> iterator()
iterator in interface Iterable<XSLFTableRow>public List<XSLFTableRow> getRows()
public XSLFTableRow addRow()
public void mergeCells(int firstRow,
int lastRow,
int firstCol,
int lastCol)
Copyright © 2010 - 2020 Adobe. All Rights Reserved