New to Telerik Document ProcessingStart a free 30-day trial

Defines a single comparison criterion for CustomFilter, specifying a relational operator and target value.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Filtering

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class CustomFilterCriteria

Inheritance: objectCustomFilterCriteria

Constructors

Initializes a new instance of the CustomFilterCriteria class.

C#
public CustomFilterCriteria(ComparisonOperator comparisonOperator, string filterValue)
Parameters:comparisonOperatorComparisonOperator

The comparison operator.

filterValuestring

The filter value to which the cell value will be compared.

Properties

Gets the relational operator used to compare cell values (e.g., equals, greater than, less than).

C#
public ComparisonOperator ComparisonOperator { get; }
Property Value:

The comparison operator.

Gets the target value against which cell values are compared, stored as a string but parsed to appropriate types.

C#
public string FilterValue { get; }
Property Value:

The filter value.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()