Class
ArithmeticComparisonConverter

A converter that executes an arithmetic comparison operation with the value and an operand.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class ArithmeticComparisonConverter : IValueConverter

Inheritance: objectArithmeticComparisonConverter

Implements: IValueConverter

Constructors

ArithmeticComparisonConverter()

Declaration

cs-api-definition
public ArithmeticComparisonConverter()

Properties

Operator

Gets or sets the comparison operator. For example '==', '!=', '>', '>=', '<', '<='.

Declaration

cs-api-definition
public string Operator { get; set; }

Property Value

string

SecondOperand

Gets or sets the second (right) operand of the comparison.

Declaration

cs-api-definition
public double SecondOperand { get; set; }

Property Value

double

Methods

Convert(object, Type, object, CultureInfo)

Checks whether the configured arithmetic comparison operation is true.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The first operand of the comparison, a number. If the value is not a number, false is returned.

targetType

Type

The type of the target property.

parameter

object

The converter parameter is not used.

culture

CultureInfo

The culture to use in the converter.

Returns

object

The result from the comparison. If the value is not a number, false is returned.

ConvertBack(object, Type, object, CultureInfo)

Backwards conversion is not supported.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object