|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.xls.core.spreadsheet.xlsobject
com.spire.xls.core.spreadsheet.xlsrange
com.spire.xls.cellrange
public class cellrange
represents the cell range.
constructor summary | |
---|---|
cellrange(java.lang.object parent)
|
|
cellrange(java.lang.object parent,
int firstcol,
int firstrow,
int lastcol,
int lastrow)
|
method summary | |
---|---|
cellrange |
activate()
active single cell in the worksheet. |
excelcomment |
addcomment()
adds a comment to the range. |
void |
addcomment(excelcomment comment)
adds a comment to the range. |
cellrange |
copy(cellrange destrange)
copies the range to the specified range. |
cellrange |
copy(cellrange destrange,
boolean updatereference)
copies the range to the specified range. |
cellrange |
copy(cellrange destrange,
boolean updatereference,
boolean copystyles)
copies the range to the specified range. |
cellrange |
copy(cellrange destrange,
java.util.enumset<copyrangeoptions> copyoptions)
copies the range to the specified range. |
cellrange |
deepclone(java.lang.object parent,
java.util.hashmap rangenames,
workbook book)
clones current ixlsrange. |
cellrange[] |
findallbool(boolean boolvalue)
finds the cell with the input bool. |
cellrange[] |
findalldate(java.util.date datevalue)
finds the cell with the input datetime. |
cellrange[] |
findallnumber(double doublevalue,
boolean formulavalue)
finds the cell with the input double. |
cellrange[] |
findallstring(java.lang.string stringvalue,
boolean formula,
boolean formulavalue)
finds the cell with the input string. |
cellrange |
findbool(boolean boolvalue)
finds the cell with the input bool. |
cellrange |
finddate(java.util.date datevalue)
finds the cell with the input datetime. |
cellrange |
findnumber(double doublevalue,
boolean formulavalue)
finds the cell with the input double. |
cellrange |
findstring(java.lang.string stringvalue,
boolean formula,
boolean formulavalue)
finds the cell with the input string. |
cellrange |
get(int row,
int column)
gets cell range. |
cellrange |
get(int row,
int column,
int lastrow,
int lastcolumn)
gets cell range. |
cellrange |
get(java.lang.string name)
gets cell range. |
cellrange |
get(java.lang.string name,
boolean isr1c1notation)
gets cell range |
borderscollection |
getborders()
returns a borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). |
java.util.arraylist<cellrange> |
getcelllist()
returns a range object that represents the cells in the specified range. |
cellstyle |
getcellstyle()
returns a style object that represents the style of the specified range |
cellrange[] |
getcolumns()
returns a range object that represents the columns in the specified range |
excelcomment |
getcomment()
returns a comment object that represents the comment associated with the cell in the upper-left corner of the range. |
cellrange |
getendcell()
returns a range object that represents the cell at the end of the region that contains the source range. |
cellrange |
getentirecolumn()
returns a range object that represents the entire column (or columns) that contains the specified range. |
cellrange |
getentirerow()
returns a range object that represents the entire row (or rows) that contains the specified range. |
cellrange |
getmergearea()
returns a range object that represents the merged range containing the specified cell. |
richtext |
getrichtext()
returns a rich text string object that represents the rich text style. |
cellrange[] |
getrows()
returns the number of the first row of the first area in the range. |
worksheet |
getworksheet()
returns a worksheet object that represents the worksheet |
cellrange |
intersect(cellrange range)
get intersection range with the specified range. |
cellrange |
merge(cellrange range)
creates a merged cell from the specified range object. |
void |
move(cellrange destrange)
moves the cells to the specified range. |
void |
move(cellrange destrange,
boolean copystyle,
boolean updatereference)
moves the cells to the specified range. |
void |
set(int row,
int column,
cellrange value)
gets cell range. |
void |
setdatavalidation(validation datavalidation)
sets data validation for the range. |
void |
setstyle(cellstyle value)
returns a style object that represents the style of the specified range |
methods inherited from interface com.spire.xls.core.icombinedrange |
---|
getrectanglescount |
methods inherited from interface com.spire.xls.core.ixlsrange |
---|
expandgroup, getinnerformuladatetime, gettimespanvalue |
constructor detail |
---|
public cellrange(java.lang.object parent)
public cellrange(java.lang.object parent, int firstcol, int firstrow, int lastcol, int lastrow)
method detail |
---|
public cellrange activate()
activate
in class xlsrange
public void addcomment(excelcomment comment)
comment
- comment to add.public excelcomment addcomment()
addcomment
in interface ixlsrange
addcomment
in class xlsrange
public cellrange deepclone(java.lang.object parent, java.util.hashmap rangenames, workbook book)
parent
- parent object.rangenames
- new names.book
- parent workbook.
public void move(cellrange destrange)
destrange
- destnation range.public void move(cellrange destrange, boolean copystyle, boolean updatereference)
destrange
- destination range.copystyle
- copy styleupdatereference
- indicates whether to update reference range.public cellrange copy(cellrange destrange)
destrange
- destination range
public cellrange copy(cellrange destrange, boolean updatereference)
destrange
- destination range.updatereference
- indicates whether to update reference cells.
public cellrange copy(cellrange destrange, boolean updatereference, boolean copystyles)
destrange
- destination range.updatereference
- indicates whether to update reference cellscopystyles
- indicates whether to copy styles.
public cellrange copy(cellrange destrange, java.util.enumset<copyrangeoptions> copyoptions)
destrange
- destination range.copyoptions
- copy options.
public cellrange[] findallnumber(double doublevalue, boolean formulavalue)
doublevalue
- double value to search forformulavalue
- indicates whether to find formula value
public cellrange[] findallstring(java.lang.string stringvalue, boolean formula, boolean formulavalue)
stringvalue
- string value to search forformula
- indicates whether include formulaformulavalue
- indicates whether include formula value
public cellrange[] findalldate(java.util.date datevalue)
datevalue
- date time value to search for
public cellrange[] findallbool(boolean boolvalue)
boolvalue
- bool value to search for
public cellrange findbool(boolean boolvalue)
boolvalue
- bool value to search for
public cellrange findnumber(double doublevalue, boolean formulavalue)
doublevalue
- double value to search forformulavalue
- indicates whether includes formula value to search for
public cellrange findstring(java.lang.string stringvalue, boolean formula, boolean formulavalue)
stringvalue
- string value to search forformula
- indicates whether includes formula to search forformulavalue
- indicates whether includes formula value to search for
public cellrange finddate(java.util.date datevalue)
datevalue
- datetime value to search for
public cellrange intersect(cellrange range)
range
- range which to intersect.
public cellrange merge(cellrange range)
range
- the range to merge with.
public void setdatavalidation(validation datavalidation)
datavalidation
- data validation to set.public borderscollection getborders()
getborders
in interface ixlsrange
getborders
in class xlsrange
public cellstyle getcellstyle()
public void setstyle(cellstyle value)
public java.util.arraylist<cellrange> getcelllist()
getcelllist
in interface ixlsrange
getcelllist
in class xlsrange
public cellrange[] getcolumns()
getcolumns
in interface ixlsrange
getcolumns
in class xlsrange
public cellrange[] getrows()
getrows
in interface ixlsrange
getrows
in class xlsrange
public cellrange get(int row, int column)
get
in interface ixlsrange
get
in class xlsrange
row
- column
-
public void set(int row, int column, cellrange value)
row
- column
- public cellrange get(int row, int column, int lastrow, int lastcolumn)
get
in interface ixlsrange
get
in class xlsrange
row
- column
- lastrow
- lastcolumn
-
public cellrange get(java.lang.string name)
get
in interface ixlsrange
get
in class xlsrange
name
-
public cellrange get(java.lang.string name, boolean isr1c1notation)
get
in interface ixlsrange
get
in class xlsrange
name
- isr1c1notation
-
public excelcomment getcomment()
getcomment
in interface ixlsrange
getcomment
in class xlsrange
public worksheet getworksheet()
getworksheet
in interface ixlsrange
getworksheet
in class xlsrange
public richtext getrichtext()
getrichtext
in interface ixlsrange
getrichtext
in class xlsrange
public cellrange getentirecolumn()
getentirecolumn
in interface ixlsrange
getentirecolumn
in class xlsrange
public cellrange getendcell()
getendcell
in interface ixlsrange
getendcell
in class xlsrange
public cellrange getmergearea()
getmergearea
in interface ixlsrange
getmergearea
in class xlsrange
public cellrange getentirerow()
getentirerow
in interface ixlsrange
getentirerow
in class xlsrange
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |