Export (0) Print
Expand All

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.

[Example:

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

end example]

Parent Elements

customFilters (§18.3.2.3)

Attributes

Description

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 (§22.9.2.19).

[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.

Community Additions

Show:
© 2014 Microsoft