public class PivotFilterCollection extends CollectionBase
| Modifier and Type | Method and Description |
|---|---|
int |
add(int fieldIndex,
int type)
Deprecated.
Use PivotFilterCollection.AddValueFilter(),AddTop10Filter(),AddLabelFilter() and AddDateFilter() methods,instead.
|
PivotFilter |
addDateFilter(int baseFieldIndex,
int type,
DateTime dateTime1,
DateTime dateTime2)
Filters by date setting of row or column pivot field.
|
PivotFilter |
addLabelFilter(int baseFieldIndex,
int type,
java.lang.String label1,
java.lang.String label2)
Filters by captions of row or column pivot field.
|
PivotFilter |
addTop10Filter(int baseFieldIndex,
int valueFieldIndex,
int type,
boolean isTop,
int itemCount)
Filters by values of data pivot field.
|
PivotFilter |
addValueFilter(int baseFieldIndex,
int valueFieldIndex,
int type,
double value1,
double value2)
Filters by values of data pivot field.
|
void |
clearFilter(int fieldIndex)
Clear PivotFilter from the specific PivotField
|
PivotFilter |
get(int index)
Gets the pivotfilter object at the specific index.
|
public PivotFilter get(int index)
get in class CollectionBaseindex - Specified position index.public int add(int fieldIndex,
int type)
Remarks
NOTE: This method is now obsolete. Instead, please use PivotFilterCollection.AddValueFilter(),AddTop10Filter(),AddLabelFilter() and AddDateFilter() methods. This method will be removed 12 months later since November 2024. Aspose apologizes for any inconvenience you may have experienced.fieldIndex - the PivotField indextype - PivotFilterType. the PivotFilter typepublic PivotFilter addTop10Filter(int baseFieldIndex, int valueFieldIndex, int type, boolean isTop, int itemCount)
baseFieldIndex - The index of field in the source.valueFieldIndex - The index of data field in the data region.type - PivotFilterType. The type of filtering data. Only can be Count,Sum and Percent.isTop - Indicates whether filter from top or bottomitemCount - The item countpublic PivotFilter addValueFilter(int baseFieldIndex, int valueFieldIndex, int type, double value1, double value2)
baseFieldIndex - The index of field in the source.valueFieldIndex - The index of value field in the value region.type - PivotFilterType. The type of filtering data.value1 - The value of filter conditionvalue2 - The upper-bound value of between filter conditionpublic PivotFilter addLabelFilter(int baseFieldIndex, int type, java.lang.String label1, java.lang.String label2)
baseFieldIndex - The index of field in the source.type - PivotFilterType. The type of filtering data.label1 - The label of filter conditionlabel2 - The upper-bound label of between filter conditionpublic PivotFilter addDateFilter(int baseFieldIndex, int type, DateTime dateTime1, DateTime dateTime2)
baseFieldIndex - The index of field in the source.type - PivotFilterType. The type of filtering data.dateTime1 - The date label of filter conditiondateTime2 - The upper-bound date label of between filter conditionpublic void clearFilter(int fieldIndex)
fieldIndex - the PivotField indexSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.