public class OdfTableCellRange extends Object
OdfTableCellRange provides methods to get/set/modify the properties of cell range.
| Modifier and Type | Method and Description |
|---|---|
OdfTableCell |
getCellByPosition(int clmIndex,
int rowIndex)
Returns a single cell that is positioned at specified column and row.
|
OdfTableCell |
getCellByPosition(String address)
Returns a single cell that is positioned at specified cell address.
|
String |
getCellRangeName()
Get the name of the named cell range.
|
int |
getColumnNumber()
Get the number of columns in this cell range.
|
int |
getRowNumber()
Get the number of rows in this cell range.
|
OdfTable |
getTable()
Get the
OdfTable instance who contains this cell range. |
void |
merge()
Merge the current cell range to one cell
|
void |
setCellRangeName(String cellRangeName)
Set the name of the current cell range.
|
public void merge()
public String getCellRangeName()
public void setCellRangeName(String cellRangeName)
cellRangeName - the name that need to setpublic OdfTable getTable()
OdfTable instance who contains this cell range.public int getRowNumber()
public int getColumnNumber()
public OdfTableCell getCellByPosition(int clmIndex, int rowIndex) throws IndexOutOfBoundsException
clmIndex - the column index of the cell inside the range.rowIndex - the row index of the cell inside the range.IndexOutOfBoundsException - if the column/row index is bigger than the column/row countpublic OdfTableCell getCellByPosition(String address)
address - the cell address of the cell inside the range.Copyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.