CustomFilter Class

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

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

public class CustomFilter : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition] customFilter (Custom Filter Criteria)

A custom AutoFilter specifies an operator and a value. There can be at most two customFilters specified, and in that case the parent element specifies whether the two conditions are joined by 'and' or 'or'. For any cells whose values do not meet the specified criteria, the corresponding rows shall be hidden from view when the fitler is applied.


<customFilters and="1">
<customFilter operator="greaterThanOrEqual" val="0.2"/>
<customFilter operator="lessThanOrEqual" val="0.5"/>

end example]

Parent Elements

customFilters (§



operator (Filter Comparison Operator)

Operator used by the filter comparison.

The possible values for this attribute are defined by the ST_FilterOperator simple type (§18.18.31).

val (Top or Bottom Value)

Top or bottom value used in the filter criteria.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_CustomFilter) 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.