Filters class

Office 2013 and later

Filter Criteria. When the object is serialized out as xml, its qualified name is x:filters.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[ChildElementInfoAttribute(typeof(Filter), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
public class Filters : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

filters (Filter Criteria)

When multiple values are chosen to filter by, or when a group of date values are chosen to filter by, this element groups those criteria together.


  <dateGroupItem year="2006" month="1" day="2" dateTimeGrouping="day"/>
  <dateGroupItem year="2005" month="1" day="2" dateTimeGrouping="day"/>

end example]

Parent Elements

filterColumn (§

Child Elements


dateGroupItem (Date Grouping)


filter (Filter)




blank (Filter by Blank)

Flag indicating whether to filter by blank.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

calendarType (Calendar Type)

Calendar type for date grouped items. Used to interpret the values in dateGroupItem. This is the calendar type used to evaluate all dates in the filter column, even when those dates are not using the same calendar system / date formatting.

The possible values for this attribute are defined by the ST_CalendarType simple type (§

[Note: The W3C XML Schema definition of this element’s content model (CT_Filters) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.