Package org.apache.poi.xslf.usermodel
Class XSLFTableRow
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFTableRow
- All Implemented Interfaces:
Iterable<XSLFTableCell>
Represents a table in a .pptx presentation
-
Method Summary
Modifier and TypeMethodDescriptionaddCell()getCells()doubleinsertCell(int colIdx) Insert a new cell at the given index.iterator()voidmergeCells(int firstCol, int lastCol) Merge cells of a table row, inclusive.voidremoveCell(int colIdx) Remove the cell at the given index.voidsetHeight(double height) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getXmlObject
-
iterator
- Specified by:
iteratorin interfaceIterable<XSLFTableCell>
-
getCells
-
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
addCell
-
insertCell
Insert a new cell at the given index.- Parameters:
colIdx- the column index.- Since:
- POI 4.1.2
-
removeCell
public void removeCell(int colIdx) Remove the cell at the given index.- Parameters:
colIdx- the column index.- Since:
- POI 4.1.2
-
mergeCells
public void mergeCells(int firstCol, int lastCol) Merge cells of a table row, inclusive. Indices are 0-based.- Parameters:
firstCol- 0-based index of first column to merge, inclusivelastCol- 0-based index of last column to merge, inclusive
-