Class ExcelPivotTableFieldFilterCollection
A collection of pivot filters for a pivot table
Implements
System.Collections.Generic.IEnumerable <ExcelPivotTableFilter >
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Table.PivotTable.Filter
Assembly: EPPlus.dll
Syntax
public class ExcelPivotTableFieldFilterCollection : ExcelPivotTableFilterBaseCollection, IEnumerable<ExcelPivotTableFilter>, IEnumerable
Methods
AddCaptionFilter(ePivotTableCaptionFilterType, String, String)
Adds a caption (label) filter for a pivot tabel field
Declaration
public ExcelPivotTableFilter AddCaptionFilter(ePivotTableCaptionFilterType type, string value1, string value2 = null)
Parameters
Type | Name | Description |
---|---|---|
e |
type | |
System. |
value1 | |
System. |
value2 |
Returns
Type | Description |
---|---|
Excel |
AddDatePeriodFilter(ePivotTableDatePeriodFilterType)
Declaration
public ExcelPivotTableFilter AddDatePeriodFilter(ePivotTableDatePeriodFilterType type)
Parameters
Type | Name | Description |
---|---|---|
e |
type |
Returns
Type | Description |
---|---|
Excel |
AddDateValueFilter(ePivotTableDateValueFilterType, DateTime, Nullable<DateTime>)
Declaration
public ExcelPivotTableFilter AddDateValueFilter(ePivotTableDateValueFilterType type, DateTime value1, DateTime? value2 = null)
Parameters
Type | Name | Description |
---|---|---|
e |
type | |
System. |
value1 | |
System. |
value2 |
Returns
Type | Description |
---|---|
Excel |
AddTop10Filter(ePivotTableTop10FilterType, ExcelPivotTableDataField, Double, Boolean)
Adds a top 10 filter to the field
Declaration
public ExcelPivotTableFilter AddTop10Filter(ePivotTableTop10FilterType type, ExcelPivotTableDataField dataField, double value, bool isTop = true)
Parameters
Type | Name | Description |
---|---|---|
e |
type | The top-10 filter type |
Excel |
dataField | The datafield within the pivot table |
System. |
value | The top or bottom value to relate to |
System. |
isTop | Top or bottom. true is Top, false is Bottom |
Returns
Type | Description |
---|---|
Excel |
AddTop10Filter(ePivotTableTop10FilterType, Int32, Double, Boolean)
Adds a top 10 filter to the field
Declaration
public ExcelPivotTableFilter AddTop10Filter(ePivotTableTop10FilterType type, int dataFieldIndex, double value, bool isTop = true)
Parameters
Type | Name | Description |
---|---|---|
e |
type | The top-10 filter type |
System. |
dataFieldIndex | The index to the data field within the pivot tables DataField collection |
System. |
value | The top or bottom value to relate to |
System. |
isTop | Top or bottom. true is Top, false is Bottom |
Returns
Type | Description |
---|---|
Excel |
AddValueFilter(ePivotTableValueFilterType, ExcelPivotTableDataField, Object, Object)
Declaration
public ExcelPivotTableFilter AddValueFilter(ePivotTableValueFilterType type, ExcelPivotTableDataField dataField, object value1, object value2 = null)
Parameters
Type | Name | Description |
---|---|---|
e |
type | |
Excel |
dataField | |
System. |
value1 | |
System. |
value2 |
Returns
Type | Description |
---|---|
Excel |
AddValueFilter(ePivotTableValueFilterType, Int32, Object, Object)
Declaration
public ExcelPivotTableFilter AddValueFilter(ePivotTableValueFilterType type, int dataFieldIndex, object value1, object value2 = null)
Parameters
Type | Name | Description |
---|---|---|
e |
type | |
System. |
dataFieldIndex | |
System. |
value1 | |
System. |
value2 |
Returns
Type | Description |
---|---|
Excel |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable