public class Range extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
colToString(int c)
Convert a column index to a column name.
|
boolean |
contains(int r,
int c)
Check if this range contains the given cell coordinates.
|
boolean |
equals(Object obj) |
int |
getBottom()
Get bottom row.
|
int |
getLeft()
Get left column.
|
int |
getRight()
Get right column.
|
int |
getTop()
Get top row.
|
Worksheet |
getWorksheet()
Get parent worksheet.
|
int |
hashCode() |
void |
merge()
Merge cells within this range.
|
void |
setName(String name)
Specifically define this range by assigning it a name.
|
StyleSetter |
style()
Get a new style setter for this range.
|
String |
toAbsoluteString()
Get an absolute reference to this Range.
|
String |
toString() |
ListDataValidation |
validateWithList(Range listRange)
Construct a new ListDataValidation
|
public Worksheet getWorksheet()
public int getTop()
public int getLeft()
public int getBottom()
public int getRight()
public static String colToString(int c)
c - Zero-based column index.public String toAbsoluteString()
public StyleSetter style()
public void merge()
public boolean contains(int r,
int c)
r - Zero-based row number.c - Zero-based column number.true if this range contains the given cell coordinates.public ListDataValidation validateWithList(Range listRange)
listRange - The Range of the list this validation referencespublic void setName(String name)
name - string representing the name of this cell rangeCopyright © 2021. All rights reserved.