ClassIsEven
Tests whether a number is even and returns TRUE for even numbers, FALSE for odd numbers.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class IsEven : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionIsEven
Inherited Members
Constructors
IsEven()
Initializes a new ISEVEN function instance for testing whether numbers are even.
Declaration
public IsEven()
Fields
FunctionName
The name of the function.
Properties
ArgumentConversionRules
Gets conversion rules that control how arguments are coerced to numbers, excluding booleans.
Declaration
public override ArgumentConversionRules ArgumentConversionRules { get; }
Property Value
The argument conversion rules as ArgumentConversionRules.
Overrides
FunctionInfo
Gets metadata describing the function's category, parameters, and localization keys.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
The function info as FunctionInfo.
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<double>)
Evaluates the function by testing if the number modulo 2 equals 0 and returns the boolean result.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters
context
FunctionEvaluationContext<double>
The context.
Returns
Functions result as RadExpression.
Overrides