New to Telerik Document Processing? Start a free 30-day trial

Base class for spreadsheet functions that accept arguments, handling argument conversion, validation, and typed evaluation.

Definition

Constructors

Initializes a new function that validates and converts arguments before evaluation.

C#
protected FunctionWithArguments()

Methods

Evaluates a single element during pointwise array lifting by applying argument conversion rules to the scalar element and then calling the typed EvaluateOverride(FunctionEvaluationContext<object>).

C#
protected override ConstantExpression EvaluateLiftedElement(FunctionEvaluationContext<RadExpression> context, RadExpression[] resolvedArgs, int row, int col)
Parameters:contextFunctionEvaluationContext<RadExpression>resolvedArgsRadExpression[]rowintcolintReturns:

ConstantExpression

Overrides: FunctionBase.EvaluateLiftedElement(FunctionEvaluationContext<RadExpression>, RadExpression[], int, int)

Override to implement function-specific logic using converted object arguments; called after argument conversion.

C#
protected virtual RadExpression EvaluateOverride(FunctionEvaluationContext<object> context)
Parameters:contextFunctionEvaluationContext<object>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Evaluates the function by converting expression arguments to typed values according to argument definitions and then calling the typed evaluation override.

C#
protected override sealed RadExpression EvaluateOverride(FunctionEvaluationContext<RadExpression> context)
Parameters:contextFunctionEvaluationContext<RadExpression>

The context.

Returns:

RadExpression

Function result as RadExpression.

Overrides: FunctionBase.EvaluateOverride(FunctionEvaluationContext<RadExpression>)