public class XSLFTableRow extends java.lang.Object implements java.lang.Iterable<XSLFTableCell>
Modifier and Type | Method and Description |
---|---|
XSLFTableCell |
addCell() |
java.util.List<XSLFTableCell> |
getCells() |
double |
getHeight() |
org.openxmlformats.schemas.drawingml.x2006.main.CTTableRow |
getXmlObject() |
XSLFTableCell |
insertCell(int colIdx)
Insert a new cell at the given index.
|
java.util.Iterator<XSLFTableCell> |
iterator() |
void |
mergeCells(int firstCol,
int lastCol)
Merge cells of a table row, inclusive.
|
void |
removeCell(int colIdx)
Remove the cell at the given index.
|
void |
setHeight(double height) |
public org.openxmlformats.schemas.drawingml.x2006.main.CTTableRow getXmlObject()
public java.util.Iterator<XSLFTableCell> iterator()
iterator
in interface java.lang.Iterable<XSLFTableCell>
public java.util.List<XSLFTableCell> getCells()
public double getHeight()
public void setHeight(double height)
public XSLFTableCell addCell()
public XSLFTableCell insertCell(int colIdx)
colIdx
- the column index.public void removeCell(int colIdx)
colIdx
- the column index.public void mergeCells(int firstCol, int lastCol)
firstCol
- 0-based index of first column to merge, inclusivelastCol
- 0-based index of last column to merge, inclusiveCopyright 2020 The Apache Software Foundation or its licensors, as applicable.