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

Implements the TYPE function, which returns a numeric code indicating the data type of a value (1=number, 2=text, 4=boolean, 16=error, 64=array).

Definition

Constructors

Initializes a new TYPE function instance for determining value data types.

C#
public TypeFunction()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

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

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the function name "TYPE" used in formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the function by examining the argument's expression type and returning the corresponding numeric type code.

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

The context.

Returns:

RadExpression

Function result as RadExpression.

Overrides: FunctionBase.EvaluateOverride(FunctionEvaluationContext<RadExpression>)