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

Match

Class

Implements the MATCH function, which searches for a value in a range and returns its relative position within that range.

Definition

Constructors

Initializes a new MATCH function instance.

C#
public Match()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets the metadata describing the MATCH function's category, description, and argument requirements.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

When true, FunctionBase automatically evaluates this function element-wise over any multi-element array argument and returns a spilled array result. Override to true in pure scalar functions (e.g. ABS, LEN, MOD) where applying the function independently to each element of an input array is the correct dynamic-array behavior. Leave false (the default) for reducers.

C#
public override bool LiftsOverArrays { get; }

Overrides: FunctionBase.LiftsOverArrays

Gets the name of the function as "MATCH".

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the MATCH function by searching the lookup array for the specified value and returning its 1-based position.

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

The context.

Returns:

RadExpression

Function result as RadExpression.

Overrides: FunctionWithArguments.EvaluateOverride(FunctionEvaluationContext<object>)