Class FilterHelper
This class encapsulates the support for computing filter values and expressions.
Inheritance
System.Object
FilterHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class FilterHelper
Constructors
FilterHelper()
Initializes a new instance of the FilterHelper class.
Declaration
public FilterHelper()
Properties
CaseSensitive
Gets or sets value to indicate whether the expression should be treated in a case-sensitive manner. The default value is true.
Declaration
public bool CaseSensitive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Count
Gets the number of filter expressions contained in this helper class.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Gets the particular filter expression in the order it was added.
Declaration
public FilterExpression this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | The index of desired filter expression. |
Property Value
Type | Description |
---|---|
FilterExpression | The filter expression. |
Methods
AddFilterExpression(String, String)
Adds a filter expression.
Declaration
public void AddFilterExpression(string name, string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of filter expression. |
System.String | expression | A string holding a well-formed logical expression. |
Clear()
Clears all filter expressions.
Declaration
public void Clear()
RemoveFilterExpression(FilterExpression)
Removes a filter expression.
Declaration
public bool RemoveFilterExpression(FilterExpression exp)
Parameters
Type | Name | Description |
---|---|---|
FilterExpression | exp | The name of the filter expression to be removed. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the expression was successfully removed; otherwise, false. |