CustomFilter Class
Custom Filter Criteria.When the object is serialized out as xml, its qualified name is x:customFilter.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Spreadsheet.CustomFilter
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class CustomFilter _
Inherits OpenXmlLeafElement
'Usage
Dim instance As CustomFilter
public class CustomFilter : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1st Edition]
18.3.2.2 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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.