API Reference
ExcelPivotFilter
Describes a pivot table label or value filter to author.
Inheritance
- Object
- ExcelPivotFilter
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method ExcelPivotFilter.BottomCount
- Method ExcelPivotFilter.BottomPercent
- Method ExcelPivotFilter.BottomSum
- Method ExcelPivotFilter.Date
- Method ExcelPivotFilter.DateBetween
- Method ExcelPivotFilter.DateEquals
- Method ExcelPivotFilter.DateLastMonth
- Method ExcelPivotFilter.DateLastQuarter
- Method ExcelPivotFilter.DateLastWeek
- Method ExcelPivotFilter.DateLastYear
- Method ExcelPivotFilter.DateMonth
- Method ExcelPivotFilter.DateNewerThan
- Method ExcelPivotFilter.DateNewerThanOrEqual
- Method ExcelPivotFilter.DateNextMonth
- Method ExcelPivotFilter.DateNextQuarter
- Method ExcelPivotFilter.DateNextWeek
- Method ExcelPivotFilter.DateNextYear
- Method ExcelPivotFilter.DateNotBetween
- Method ExcelPivotFilter.DateNotEquals
- Method ExcelPivotFilter.DateOlderThan
- Method ExcelPivotFilter.DateOlderThanOrEqual
- Method ExcelPivotFilter.DateQuarter
- Method ExcelPivotFilter.DateThisMonth
- Method ExcelPivotFilter.DateThisQuarter
- Method ExcelPivotFilter.DateThisWeek
- Method ExcelPivotFilter.DateThisYear
- Method ExcelPivotFilter.DateToday
- Method ExcelPivotFilter.DateTomorrow
- Method ExcelPivotFilter.DateYearToDate
- Method ExcelPivotFilter.DateYesterday
- Method ExcelPivotFilter.DynamicDate
- Method ExcelPivotFilter.Label
- Method ExcelPivotFilter.LabelBeginsWith
- Method ExcelPivotFilter.LabelBetween
- Method ExcelPivotFilter.LabelContains
- Method ExcelPivotFilter.LabelEndsWith
- Method ExcelPivotFilter.LabelEquals
- Method ExcelPivotFilter.LabelGreaterThan
- Method ExcelPivotFilter.LabelGreaterThanOrEqual
- Method ExcelPivotFilter.LabelLessThan
- Method ExcelPivotFilter.LabelLessThanOrEqual
- Method ExcelPivotFilter.LabelNotBeginsWith
- Method ExcelPivotFilter.LabelNotBetween
- Method ExcelPivotFilter.LabelNotContains
- Method ExcelPivotFilter.LabelNotEndsWith
- Method ExcelPivotFilter.LabelNotEquals
- Method ExcelPivotFilter.TopCount
- Method ExcelPivotFilter.TopPercent
- Method ExcelPivotFilter.TopSum
- Method ExcelPivotFilter.Value
- Method ExcelPivotFilter.ValueBetween
- Method ExcelPivotFilter.ValueEquals
- Method ExcelPivotFilter.ValueGreaterThan
- Method ExcelPivotFilter.ValueGreaterThanOrEqual
- Method ExcelPivotFilter.ValueLessThan
- Method ExcelPivotFilter.ValueLessThanOrEqual
- Method ExcelPivotFilter.ValueNotBetween
- Method ExcelPivotFilter.ValueNotEquals
Accepted by parameters
- Method ExcelSheet.AddPivotTable
- Method PivotTableBuilder.Filter
Methods
public static ExcelPivotFilter BottomCount(String fieldName, String dataFieldName, Int32 count, String name = null, String description = null) #ExcelPivotFilterCreates a bottom-count pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- count System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter BottomPercent(String fieldName, String dataFieldName, Int32 percent, String name = null, String description = null) #ExcelPivotFilterCreates a bottom-percent pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- percent System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter BottomSum(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a bottom-sum pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter Date(String fieldName, PivotFilterValues type, DateTime value1, Nullable<DateTime> value2 = null, String name = null, String description = null) #ExcelPivotFilterCreates a fixed date pivot filter using a supported Open XML pivot filter type.
Parameters
- fieldName System.String
- type DocumentFormat.OpenXml.Spreadsheet.PivotFilterValues
- value1 System.DateTime
- value2 System.Nullable{System.DateTime} = null
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateBetween(String fieldName, DateTime from, DateTime to, String name = null, String description = null) #ExcelPivotFilterCreates a date-between pivot filter.
Parameters
- fieldName System.String
- from System.DateTime
- to System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateEquals(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-equals pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateLastMonth(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for last month.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateLastQuarter(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for last quarter.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateLastWeek(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for last week.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateLastYear(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for last year.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateMonth(String fieldName, Int32 month, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for a calendar month.
Parameters
- fieldName System.String
- month System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNewerThan(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-newer-than pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNewerThanOrEqual(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-newer-than-or-equal pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNextMonth(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for next month.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNextQuarter(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for next quarter.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNextWeek(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for next week.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNextYear(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for next year.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNotBetween(String fieldName, DateTime from, DateTime to, String name = null, String description = null) #ExcelPivotFilterCreates a date-not-between pivot filter.
Parameters
- fieldName System.String
- from System.DateTime
- to System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateNotEquals(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-not-equals pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateOlderThan(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-older-than pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateOlderThanOrEqual(String fieldName, DateTime value, String name = null, String description = null) #ExcelPivotFilterCreates a date-older-than-or-equal pivot filter.
Parameters
- fieldName System.String
- value System.DateTime
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateQuarter(String fieldName, Int32 quarter, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for a calendar quarter.
Parameters
- fieldName System.String
- quarter System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateThisMonth(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for this month.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateThisQuarter(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for this quarter.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateThisWeek(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for this week.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateThisYear(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for this year.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateToday(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for today.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateTomorrow(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for tomorrow.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateYearToDate(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for year-to-date.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DateYesterday(String fieldName, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date filter for yesterday.
Parameters
- fieldName System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter DynamicDate(String fieldName, PivotFilterValues type, String name = null, String description = null) #ExcelPivotFilterCreates a dynamic date pivot filter using a supported Open XML pivot filter type.
Parameters
- fieldName System.String
- type DocumentFormat.OpenXml.Spreadsheet.PivotFilterValues
- name System.String = null
- description System.String = null
public static ExcelPivotFilter Label(String fieldName, PivotFilterValues type, String value1, String value2 = null, String name = null, String description = null) #ExcelPivotFilterCreates a label pivot filter using a specific Open XML pivot filter type.
Parameters
- fieldName System.String
- type DocumentFormat.OpenXml.Spreadsheet.PivotFilterValues
- value1 System.String
- value2 System.String = null
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelBeginsWith(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-begins-with pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelBetween(String fieldName, String from, String to, String name = null, String description = null) #ExcelPivotFilterCreates a label-between pivot filter.
Parameters
- fieldName System.String
- from System.String
- to System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelContains(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-contains pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelEndsWith(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-ends-with pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelEquals(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-equals pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelGreaterThan(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-greater-than pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelGreaterThanOrEqual(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-greater-than-or-equal pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelLessThan(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-less-than pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelLessThanOrEqual(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-less-than-or-equal pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelNotBeginsWith(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-not-begins-with pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelNotBetween(String fieldName, String from, String to, String name = null, String description = null) #ExcelPivotFilterCreates a label-not-between pivot filter.
Parameters
- fieldName System.String
- from System.String
- to System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelNotContains(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-not-contains pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelNotEndsWith(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-not-ends-with pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter LabelNotEquals(String fieldName, String value, String name = null, String description = null) #ExcelPivotFilterCreates a label-not-equals pivot filter.
Parameters
- fieldName System.String
- value System.String
- name System.String = null
- description System.String = null
public static ExcelPivotFilter TopCount(String fieldName, String dataFieldName, Int32 count, String name = null, String description = null) #ExcelPivotFilterCreates a top-count pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- count System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter TopPercent(String fieldName, String dataFieldName, Int32 percent, String name = null, String description = null) #ExcelPivotFilterCreates a top-percent pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- percent System.Int32
- name System.String = null
- description System.String = null
public static ExcelPivotFilter TopSum(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a top-sum pivot filter for the specified data field.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter Value(String fieldName, String dataFieldName, PivotFilterValues type, Double value1, Nullable<Double> value2 = null, String name = null, String description = null) #ExcelPivotFilterCreates a value pivot filter using a specific Open XML pivot filter type.
Parameters
- fieldName System.String
- dataFieldName System.String
- type DocumentFormat.OpenXml.Spreadsheet.PivotFilterValues
- value1 System.Double
- value2 System.Nullable{System.Double} = null
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueBetween(String fieldName, String dataFieldName, Double from, Double to, String name = null, String description = null) #ExcelPivotFilterCreates a value-between pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- from System.Double
- to System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueEquals(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-equals pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueGreaterThan(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-greater-than pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueGreaterThanOrEqual(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-greater-than-or-equal pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueLessThan(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-less-than pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueLessThanOrEqual(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-less-than-or-equal pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueNotBetween(String fieldName, String dataFieldName, Double from, Double to, String name = null, String description = null) #ExcelPivotFilterCreates a value-not-between pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- from System.Double
- to System.Double
- name System.String = null
- description System.String = null
public static ExcelPivotFilter ValueNotEquals(String fieldName, String dataFieldName, Double value, String name = null, String description = null) #ExcelPivotFilterCreates a value-not-equals pivot filter.
Parameters
- fieldName System.String
- dataFieldName System.String
- value System.Double
- name System.String = null
- description System.String = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String FieldName { get; } #Gets the source field name to filter.
public PivotFilterValues Type { get; } #Gets the Open XML pivot filter type.
public String Value2 { get; } #Gets the second filter value for between-style filters.
public String DataFieldName { get; } #Gets the data field used by value filters.
public String Name { get; } #Gets the optional filter display name.
public String Description { get; } #Gets the optional filter description.
public Nullable<Boolean> IsTop { get; } #Gets whether a top/bottom filter keeps top values. False means bottom values.
public Nullable<Boolean> IsPercent { get; } #Gets whether a top/bottom filter uses a percentage threshold.
public String FilterValue { get; } #Gets the optional calculated top/bottom filter value threshold.