| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int r,
int c)
Check if this range contains the given cell coordinates.
|
Table |
createTable() |
Table |
createTable(String... headers) |
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 |
setHyperlink(HyperLink hyperLink) |
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() |
CustomDataValidation |
validateWithFormula(String formula)
Construct a new ListDataValidation
|
ListDataValidation |
validateWithList(Range listRange)
Construct a new ListDataValidation
|
colToStringpublic Worksheet getWorksheet()
public int getTop()
public int getLeft()
public int getBottom()
public int getRight()
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 CustomDataValidation validateWithFormula(String formula)
formula - The custom validation formulapublic void setName(String name)
name - string representing the name of this cell rangepublic void setHyperlink(HyperLink hyperLink)
public Table createTable()
Copyright © 2023. All rights reserved.