public interface CellRange<C extends Cell>
extends java.lang.Iterable<C>
Sheet
(表示 Sheet 的矩形区域)
Modifier and Type | Method and Description |
---|---|
C |
getCell(int relativeRowIndex, int relativeColumnIndex) |
C[][] |
getCells() |
C[] |
getFlattenedCells() |
int |
getHeight() |
java.lang.String |
getReferenceText() |
C |
getTopLeftCell() |
int |
getWidth() |
java.util.Iterator<C> |
iterator() |
int |
size()
Gets the number of cells in this range.
(获取此范围内的单元格数。)
|
int getWidth()
int getHeight()
int size()
java.lang.String getReferenceText()
C getTopLeftCell()
null
.
(相对坐标 (0,0) 处的单元格。从不为空。)
C getCell(int relativeRowIndex, int relativeColumnIndex)
relativeRowIndex
- must be between
0 and
height-1
(relativeRowIndex - 必须介于 0 和 height-1 之间)
relativeColumnIndex
- must be between
0 and
width-1
(relativeColumnIndex - 必须介于 0 和 width-1 之间)
null
.
(指定坐标处的单元格。从不为空。)
C[] getFlattenedCells()
CellRange
(此 CellRange 中所有单元格的扁平数组)
C[][] getCells()
CellRange
. The first array dimension is the row index (values
0...height-1) and the second dimension is the column index (values
0...width-1)
(此 CellRange 中所有单元格的二维数组。第一个数组维度是行索引(值 0...height-1),第二个维度是列索引(值 0...width-1))
java.util.Iterator<C> iterator()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.