|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.ms.system.collections.collectionbase
![]()
com.spire.xls.core.spreadsheet.collections.xlsconditionalformats
public class xlsconditionalformats
collection of conditional formats for the single-cell range.
constructor summary | |
---|---|
(java.lang.object parent,
fcc)
creates new instance. |
|
xlsconditionalformats(java.lang.object parent,
xlsconditionalformats toclone)
creates new instance. |
method summary | |
---|---|
iconditionalformat |
addaveragecondition(averagetype averagetype)
add new above or below the average condition to the collection. |
iconditionalformat |
addbeginswithcondition(java.lang.string text)
add new begin with condition to the collection. |
void |
addcells(com.spire.ms.system.collections.ilist arrcells)
adds cells from the collection. |
void |
addcells(xlsconditionalformats formats)
adds cells from the collection. |
iconditionalformat |
addcellvaluecondition(comparisonoperatortype operatortype,
double value1,
double value2)
add new cell value condition to the collection. |
iconditionalformat |
addcellvaluecondition(comparisonoperatortype operatortype,
java.lang.string value1,
java.lang.string value2)
add new cell value condition to the collection. |
iconditionalformat |
addcondition()
adds new condition to the collection. |
iconditionalformat |
addcontainsblankscondition()
add new contain blanks condition to the collection. |
iconditionalformat |
addcontainserrorscondition()
add new contain errors condition to the collection. |
iconditionalformat |
addcontainstextcondition(java.lang.string text)
add new contain condition to the collection. |
iconditionalformat |
addduplicatevaluescondition()
add new duplicate values condition to the collection. |
iconditionalformat |
addendswithcondition(java.lang.string text)
add new end with condition to the collection. |
iconditionalformat |
addnotcontainsblankscondition()
add new not contain blanks condition to the collection. |
iconditionalformat |
addnotcontainserrorscondition()
add new not contain errors condition to the collection. |
iconditionalformat |
addnotcontainstextcondition(java.lang.string text)
add new not contain condition to the collection. |
void |
addrange(ixlsrange range)
adds range to the collection. |
iconditionalformat |
addtimeperiodcondition(timeperiodtype timeperiodtype)
add new time period condition to the collection. |
iconditionalformat |
addtopbottomcondition(topbottomtype topbottomtype,
int rank)
add new topn or bottomn condition to the collection. |
iconditionalformat |
adduniquevaluescondition()
add new unique values condition to the collection. |
void |
clearcells()
removes all cells from the collection. |
boolean |
compareto(xlsconditionalformats formats)
compares this collection to another. |
boolean |
contains(java.awt.rectangle[] arrranges)
indicates whether collection contains all specified ranges. |
int |
containscount(com.spire.ms.system.drawing.rectangle range)
returns contains count for specified range. |
java.lang.object |
deepclone(java.lang.object parent)
creates a new object that is a copy of the current instance. |
boolean |
equals(java.lang.object obj)
a hash code for the current object without taking cell list into account. |
iconditionalformat |
get(int fieldindex)
gets |
java.lang.string |
getaddress()
represents address of cf ranges. |
java.lang.string |
getaddressr1c1()
represents address of cf ranges in r1c1 notation. |
iconditionalformat |
getbyindex(int index)
returns a single filter object from a collection. |
int |
getcapacity()
|
java.util.arraylist |
getcellrectangles()
gets list of rectangles describing cells with conditional formatting. |
int |
getcount()
returns number of elements in the collection. |
int |
hashcode()
serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
boolean |
isempty()
indicates whether collection is empty. |
void |
remove(int startrow,
int startcolumn,
int totalrows,
int totalcolumns)
removes the condtional format at the specified range |
void |
remove(java.awt.rectangle[] arrranges)
removes range from the collection of conditional formats. |
void |
removeat(int index)
removes the condtional format at the specified index |
void |
setcapacity(int value)
|
constructor detail |
---|
public xlsconditionalformats(java.lang.object parent, fcc)
parent
- parent object.public xlsconditionalformats(java.lang.object parent, xlsconditionalformats toclone)
parent
- parent object.toclone
- collection to clone.method detail |
---|
public iconditionalformat addcondition()
addcondition
in interface iconditionalformats
public iconditionalformat addcellvaluecondition(comparisonoperatortype operatortype, java.lang.string value1, java.lang.string value2)
operatortype
- the comparison operator for conditional formatting in excel.value1
- the first valuevalue2
- the second value .if the operatortypy is equal or notequal or greater or less or greaterorequal or lessorequal,
then this parameter must use string.empty or null
public iconditionalformat addcellvaluecondition(comparisonoperatortype operatortype, double value1, double value2)
operatortype
- the comparison operator for conditional formatting in excel.value1
- the first valuevalue2
- the second value.if the operatortypy is equal or notequal or greater or less or greaterorequal or lessorequal,
then this parameter must use ***double.nan***.don't use null
public iconditionalformat addbeginswithcondition(java.lang.string text)
text
- begin with text
public iconditionalformat addcontainstextcondition(java.lang.string text)
text
- contain text
public iconditionalformat addendswithcondition(java.lang.string text)
text
- end with text
public iconditionalformat addnotcontainstextcondition(java.lang.string text)
text
- not contain text
public iconditionalformat addcontainsblankscondition()
public iconditionalformat addcontainserrorscondition()
public iconditionalformat addduplicatevaluescondition()
public iconditionalformat addnotcontainsblankscondition()
public iconditionalformat addnotcontainserrorscondition()
public iconditionalformat adduniquevaluescondition()
public iconditionalformat addtimeperiodcondition(timeperiodtype timeperiodtype)
timeperiodtype
- type of the time period
public iconditionalformat addaveragecondition(averagetype averagetype)
averagetype
- type of the average
public iconditionalformat addtopbottomcondition(topbottomtype topbottomtype, int rank)
topbottomtype
- type of the top or bottomrank
- rank of the top or bottom
public void remove(int startrow, int startcolumn, int totalrows, int totalcolumns)
startrow
- the startrow of the range.startcolumn
- the startcolumn of the range.totalrows
- the number of rows of the range.totalcolumns
- the number of columns of the range.public void removeat(int index)
removeat
in interface iconditionalformats
removeat
in class com.spire.ms.system.collections.collectionbase
index
- the index of the formatting condition to be removed.public boolean compareto(xlsconditionalformats formats)
formats
- collection to compare.
public void addcells(xlsconditionalformats formats)
formats
- formats collection to get cells from.public boolean contains(java.awt.rectangle[] arrranges)
arrranges
- ranges to check.
public int containscount(com.spire.ms.system.drawing.rectangle range)
range
- range to check.
public void addcells(com.spire.ms.system.collections.ilist arrcells)
arrcells
- cells to add to the collection.
public void addrectangles( ilist arrcells )public void addrange(ixlsrange range)
range
- range to add.public void remove(java.awt.rectangle[] arrranges)
arrranges
- array of ranges to remove.public void clearcells()
public int hashcode()
hashcode
in class java.lang.object
public boolean equals(java.lang.object obj)
equals
in class java.lang.object
obj
- the object to compare with the current object.
public java.lang.object deepclone(java.lang.object parent)
in class
parent
- parent object for a copy of this instance.
public boolean isempty()
public java.lang.string getaddress()
public java.lang.string getaddressr1c1()
public java.util.arraylist getcellrectangles()
public iconditionalformat getbyindex(int index)
public iconditionalformat get(int fieldindex)
get
in interface iconditionalformats
fieldindex
- the integer offset of the field on which you want to base the filter
(from the left of the list; the leftmost field is field 0).
public int getcapacity()
getcapacity
in class com.spire.ms.system.collections.collectionbase
public void setcapacity(int value)
setcapacity
in class com.spire.ms.system.collections.collectionbase
public int getcount()
iconditionalformats
getcount
in interface iconditionalformats
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |