Class
ErrorType

Implements the ERROR.TYPE function, which maps error values to numeric codes (1-7) and returns #N/A if no error exists.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class ErrorType : FunctionBase

Inheritance: objectFunctionBaseErrorType

Inherited Members FunctionBase.Evaluate(FunctionEvaluationContext<RadExpression>)FunctionBase.IsArgumentNumberValid(int)FunctionBase.ArgumentConversionRules

Constructors

ErrorType()

Initializes the ERROR.TYPE function, which identifies error types and returns their numeric classification.

Declaration

cs-api-definition
public ErrorType()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

FunctionInfo

Gets the metadata describing the function's signature, including the required error value argument.

Declaration

cs-api-definition
public override FunctionInfo FunctionInfo { get; }

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

Gets the function name "ERROR.TYPE" for use in formulas.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

Methods

EvaluateOverride(FunctionEvaluationContext<RadExpression>)

Evaluates the error type argument and returns the corresponding numeric code (1=#NULL!, 2=#DIV/0!, 3=#VALUE!, 4=#REF!, 5=#NAME?, 6=#NUM!, 7=#N/A) or #N/A if not an error.

Declaration

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<RadExpression> context)

Parameters

context

FunctionEvaluationContext<RadExpression>

The context.

Returns

RadExpression

Function result as RadExpression.

Overrides FunctionBase.EvaluateOverride(FunctionEvaluationContext<RadExpression>)