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>
(接口 java.lang.Iterable 中的迭代器
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.
(colIdx - 列索引。)
public void removeCell(int colIdx)
colIdx
- the column index.
(colIdx - 列索引。)
public void mergeCells(int firstCol, int lastCol)
firstCol
- 0-based index of first column to merge, inclusive
(firstCol - 要合并的第一列的基于 0 的索引,包括)
lastCol
- 0-based index of last column to merge, inclusive
(lastCol - 要合并的最后一列的基于 0 的索引,包括在内)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.