|
|||||||||
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.xlsautofilterscollection
com.spire.xls.collections.autofilterscollection
public class autofilterscollection
constructor summary | |
---|---|
autofilterscollection(java.lang.object parent)
|
method summary | |
---|---|
void |
(iautofilter column,
datetimegroupingtype datetimegroupingtype,
int year,
int month,
int day,
int hour,
int minute,
int second)
|
void |
adddatefilter(int columnindex,
datetimegroupingtype datetimegroupingtype,
int year,
int month,
int day,
int hour,
int minute,
int second)
adds a date filter for a filter column. |
void |
addfillcolorfilter(filtercolumn filtercolumn,
java.awt.color color)
|
void |
(filtercolumn filtercolumn,
excelpatterntype pattern,
java.awt.color forecolor,
java.awt.color backcolor)
|
void |
addfillcolorfilter(int filtercolumnindex,
java.awt.color color)
adds a fill color filter. |
void |
addfillcolorfilter(int columnindex,
excelpatterntype pattern,
java.awt.color forecolor,
java.awt.color backcolor)
adds a fill color filter. |
void |
addfilter(iautofilter column,
java.lang.string criteria)
|
void |
addfilter(int columnindex,
java.lang.string criteria)
adds a filter for a filter column. |
void |
addfontcolorfilter(filtercolumn filtercolumn,
java.awt.color color)
adds a font color filter. |
void |
addiconfilter(int columnindex,
iconsettype iconsettype,
int iconid)
adds an icon filter. |
void |
clear()
|
void |
clearfilter(int filtercolumnindex)
delete the column filter by column index(filters column index not sheet column index) |
void |
clearfilter(java.lang.string columnname)
delete the column filter by column name |
void |
(filtercolumn column,
filteroperatortype operatortype,
java.lang.object criteria)
|
void |
(filtercolumn column,
filteroperatortype operatortype1,
java.lang.object criteria1,
boolean isand,
filteroperatortype operatortype2,
java.lang.object criteria2)
|
void |
customfilter(int columnindex,
filteroperatortype operatortype,
java.lang.object criteria)
filters a list with a custom criteria. |
void |
(int columnindex,
filteroperatortype operatortype1,
java.lang.object criteria1,
boolean isand,
filteroperatortype operatortype2,
java.lang.object criteria2)
filters a list with custom criterias. |
void |
dynamicfilter(iautofilter column,
dynamicfiltertype dynamicfiltertype)
|
void |
dynamicfilter(int columnindex,
dynamicfiltertype dynamicfiltertype)
adds a dynamic filter. |
void |
filter()
filter the data. |
void |
filtertop10(iautofilter column,
boolean istop,
boolean ispercent,
int itemcount)
filter the top 10 item in the list |
void |
filtertop10(int filtercolumnindex,
boolean istop,
boolean ispercent,
int itemcount)
filter the top 10 item in the list |
iautofilter |
getforiautofilter(int columnindex)
get auto filter item.. |
cellrange |
getrange()
range to be filtered. |
worksheet |
getworksheet()
returns parent worksheet. |
void |
matchblanks(iautofilter column)
match all blank cell in the list. |
void |
matchblanks(int columnindex)
match all blank cell in the list. |
void |
matchnonblanks(filtercolumn column)
match all not blank cell in the list. |
void |
matchnonblanks(int filtercolumnindex)
match all not blank cell in the list. |
void |
quickfilter(iautofilter column,
java.lang.string criteria)
|
void |
quickfilter(int columnindex,
java.lang.string criteria)
filters a list with specified criteria. |
void |
removedatefilter(int columnindex,
datetimegroupingtype datetimegroupingtype,
int year,
int month,
int day,
int hour,
int minute,
int second)
removes a date filter. |
void |
removefilter(int columnindex,
java.lang.string criteria)
removes a filter for a filter column. |
void |
setrange(cellrange range)
sets range to be filtered. |
methods inherited from class com.spire.xls.core.spreadsheet.collections.xlsautofilterscollection |
---|
get, getaddressr1c1, getcount, getsorter, hasfiltered, setrange |
constructor detail |
---|
public autofilterscollection(java.lang.object parent)
method detail |
---|
public worksheet getworksheet()
getworksheet
in class xlsautofilterscollection
public iautofilter getforiautofilter(int columnindex)
public cellrange getrange()
getrange
in class xlsautofilterscollection
public void setrange(cellrange range)
range
- public void filter()
public void addfilter(int columnindex, java.lang.string criteria)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]criteria
- the specified criteria (a string; for example, "hello the specified criteria (a string; for example, "hello").
it only can be null or be one of the cells' value in this column.public void addfilter(iautofilter column, java.lang.string criteria)
public void adddatefilter(int columnindex, datetimegroupingtype datetimegroupingtype, int year, int month, int day, int hour, int minute, int second)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]datetimegroupingtype
- datetimegroupingtypeyear
- the year.month
- the month.day
- the day.hour
- the hour.minute
- the minute.second
- the second.public void removedatefilter(int columnindex, datetimegroupingtype datetimegroupingtype, int year, int month, int day, int hour, int minute, int second)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]datetimegroupingtype
- datetimegroupingtypeyear
- the year.month
- the month.day
- the day.hour
- the hour.minute
- the minute.second
- the second.public void removefilter(int columnindex, java.lang.string criteria)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]criteria
- the specified criteria (a string; for example, "hello the specified criteria (a string; for example, "hello").
it only can be null or be one of the cells' value in this column.public void quickfilter(int columnindex, java.lang.string criteria)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]criteria
- the specified criteria (a string; for example, "hello the specified criteria (a string; for example, "hello").public void quickfilter(iautofilter column, java.lang.string criteria)
public void dynamicfilter(int columnindex, dynamicfiltertype dynamicfiltertype)
columnindex
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]dynamicfiltertype
- dynamic filter type.public void addfontcolorfilter(filtercolumn filtercolumn, java.awt.color color)
filtercolumn
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]color
- font color.public void addfillcolorfilter(int columnindex, excelpatterntype pattern, java.awt.color forecolor, java.awt.color backcolor)
columnindex
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]pattern
- the background pattern type.forecolor
- the foreground color.backcolor
- the background color.public void addfillcolorfilter(filtercolumn filtercolumn, excelpatterntype pattern, java.awt.color forecolor, java.awt.color backcolor)
public void addfillcolorfilter(int filtercolumnindex, java.awt.color color)
filtercolumnindex
- the column field index on which you want to base the filter (from the left of the list; the leftmost field is field 0).color
- fill color.public void addfillcolorfilter(filtercolumn filtercolumn, java.awt.color color)
public void addiconfilter(int columnindex, iconsettype iconsettype, int iconid)
columnindex
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]iconsettype
- the icon set type.iconid
- the icon id.public void matchblanks(int columnindex)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]public void matchblanks(iautofilter column)
column
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]public void customfilter(int columnindex, filteroperatortype operatortype, java.lang.object criteria)
columnindex
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]operatortype
- the filter operator typecriteria
- the custom criteriapublic void customfilter(int columnindex, filteroperatortype operatortype1, java.lang.object criteria1, boolean isand, filteroperatortype operatortype2, java.lang.object criteria2)
columnindex
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]operatortype1
- the first filter operator typecriteria1
- the first custom criteriaisand
- operatortype2
- the second filter operator typecriteria2
- the second custom criteriapublic void customfilter(filtercolumn column, filteroperatortype operatortype, java.lang.object criteria)
public void customfilter(filtercolumn column, filteroperatortype operatortype1, java.lang.object criteria1, boolean isand, filteroperatortype operatortype2, java.lang.object criteria2)
public void dynamicfilter(iautofilter column, dynamicfiltertype dynamicfiltertype)
public void clearfilter(java.lang.string columnname)
columnname
- column namepublic void clearfilter(int filtercolumnindex)
filtercolumnindex
- column indexpublic void adddatefilter(iautofilter column, datetimegroupingtype datetimegroupingtype, int year, int month, int day, int hour, int minute, int second)
public void filtertop10(int filtercolumnindex, boolean istop, boolean ispercent, int itemcount)
filtercolumnindex
- the column field index on which you want to base the filter (from the left of the list; the leftmost field is field 0).istop
- indicates whether filter from top or bottomispercent
- indicates whether the items is percent or countitemcount
- the item countpublic void filtertop10(iautofilter column, boolean istop, boolean ispercent, int itemcount)
column
- the column field on which you want to base the filter. for exapmle: sheet.autofilters[0]istop
- indicates whether filter from top or bottomispercent
- indicates whether the items is percent or countitemcount
- the item countpublic void matchnonblanks(int filtercolumnindex)
filtercolumnindex
- the column field index on which you want to base the filter (from the left of the list; the leftmost field is field 0).public void matchnonblanks(filtercolumn column)
column
- the column field on which you want to base the filter . for exapmle: sheet.autofilters[0]public void clear()
clear
in class com.spire.ms.system.collections.collectionbase
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |