Class XSLFTableRow

  • All Implemented Interfaces:
    java.lang.Iterable<XSLFTableCell>

    public class XSLFTableRow
    extends java.lang.Object
    implements java.lang.Iterable<XSLFTableCell>
    Represents a table in a .pptx presentation
    • Method Detail

      • iterator

        public java.util.Iterator<XSLFTableCell> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<XSLFTableCell>
      • getHeight

        public double getHeight()
      • setHeight

        public void setHeight​(double height)
      • insertCell

        public XSLFTableCell insertCell​(int colIdx)
        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, inclusive
        lastCol - 0-based index of last column to merge, inclusive