| Constructor and Description |
|---|
Ranges() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAreaRefString(int tRow,
int lCol,
int bRow,
int rCol)
Gets area reference expression
|
static String |
getAreaRefString(Sheet sheet,
AreaRef area)
Gets area reference expression
|
static String |
getAreaRefString(Sheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
Gets area reference expression
|
static String |
getCellRefString(int row,
int col)
Gets cell reference expression
|
static String |
getCellRefString(Sheet sheet,
int row,
int col)
Gets cell reference expression string
|
static String |
getColumnRefString(int column)
Get column reference string
|
static String |
getRowRefString(int row)
Get row reference
|
static Range |
range(Book book)
|
static Range |
range(Sheet sheet)
|
static Range |
range(Sheet sheet,
AreaRef selection)
|
static Range |
range(Sheet sheet,
int row,
int col)
|
static Range |
range(Sheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
Returns the associated
XRange of the specified XSheet and area. |
static Range |
range(Sheet sheet,
String areaReference)
|
static Range |
rangeByName(Sheet sheet,
String name)
Returns the associated
Range of the specified name of a NamedRange (e.g. |
public static Range rangeByName(Sheet sheet, String name)
Range of the specified name of a NamedRange (e.g. "MyRange");public static Range range(Sheet sheet, int tRow, int lCol, int bRow, int rCol)
XRange of the specified XSheet and area.sheet - the Sheet the Range will refer to.tRow - top row index of the area the Range will refer to.lCol - left column index of the area the Range will refer to.bRow - bottom row index of the area the Range will refer to.rCol - right column index fo the area the Range will refer to.Range of the specified Sheet and area.public static Range range(Sheet sheet, AreaRef selection)
sheet - the Sheet the Range will refer to.selection - the selection of spreadsheetpublic static String getCellRefString(int row, int col)
row - 0-based row indexcol - 0-based column indexpublic static String getCellRefString(Sheet sheet, int row, int col)
sheet - sheetrow - 0-based row indexcol - 0-based column indexpublic static String getAreaRefString(int tRow, int lCol, int bRow, int rCol)
tRow - top rowlCol - left columnbRow - bottom/last rowrCol - right/last columnpublic static String getAreaRefString(Sheet sheet, int tRow, int lCol, int bRow, int rCol)
sheet - sheettRow - top rowlCol - left columnbRow - bottom rowrCol - right columnpublic static String getAreaRefString(Sheet sheet, AreaRef area)
sheet - sheetarea - areapublic static String getColumnRefString(int column)
column - 0-based column indexpublic static String getRowRefString(int row)
row - 0-based row indexCopyright © 2020. All rights reserved.