Class
TypeFunction

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

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

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class TypeFunction : FunctionBase

Inheritance: objectFunctionBaseTypeFunction

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

Constructors

TypeFunction()

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

Declaration

cs-api-definition
public TypeFunction()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

FunctionInfo

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

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 "TYPE" used 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 function by examining the argument's expression type and returning the corresponding numeric type code.

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>)