New to Telerik Document ProcessingStart a free 30-day trial

Defines how a function converts and interprets different argument types during evaluation, controlling behavior for direct vs. indirect references, empty values, booleans, and text. Use predefined rule sets for common function categories.

Definition

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

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class ArgumentConversionRules

Inheritance: objectArgumentConversionRules

Constructors

Initializes a new instance of the ArgumentConversionRules class.

C#
public ArgumentConversionRules(ArgumentConversionRules conversionRules, ArrayArgumentInterpretation arrayArgument)
Parameters:conversionRulesArgumentConversionRules

The conversion rules concerning the non-array argument interpretation.

arrayArgumentArrayArgumentInterpretation

The array argument interpretation.

Initializes a new instance of the ArgumentConversionRules class.

C#
public ArgumentConversionRules(ArgumentInterpretation emptyDirectArgument = ArgumentInterpretation.ConvertToDefault, ArgumentInterpretation numberDirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation boolDirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation textNumberDirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation nonTextNumberDirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation emptyIndirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation numberIndirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation boolIndirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation textNumberIndirectArgument = ArgumentInterpretation.UseAsIs, ArgumentInterpretation nonTextNumberIndirectArgument = ArgumentInterpretation.UseAsIs, ArrayArgumentInterpretation arrayArgument = ArrayArgumentInterpretation.UseFirstElement)
Parameters:emptyDirectArgumentArgumentInterpretation

The empty direct argument interpretation.

numberDirectArgumentArgumentInterpretation

The number direct argument interpretation.

boolDirectArgumentArgumentInterpretation

The boolean direct argument interpretation.

textNumberDirectArgumentArgumentInterpretation

The text number direct argument interpretation.

nonTextNumberDirectArgumentArgumentInterpretation

The non text number direct argument interpretation.

emptyIndirectArgumentArgumentInterpretation

The empty indirect argument interpretation.

numberIndirectArgumentArgumentInterpretation

The number indirect argument interpretation.

boolIndirectArgumentArgumentInterpretation

The boolean indirect argument interpretation.

textNumberIndirectArgumentArgumentInterpretation

The text number indirect argument interpretation.

nonTextNumberIndirectArgumentArgumentInterpretation

The non text number indirect argument interpretation.

arrayArgumentArrayArgumentInterpretation

The array argument interpretation.

Fields

Represents boolean function argument conversion rule.

C#
public static readonly ArgumentConversionRules BoolFunctionConversion

Represents default value number function argument conversion rule.

C#
public static readonly ArgumentConversionRules DefaultValueNumberFunctionConversion

Represents nary ingnore indirect number function argument conversion rule.

C#
public static readonly ArgumentConversionRules NaryIgnoreIndirectNumberFunctionConversion

Represents nary number function argument conversion rule.

C#
public static readonly ArgumentConversionRules NaryNumberFunctionConversion

Represents non boolean nary function argument conversion rule.

C#
public static readonly ArgumentConversionRules NonBoolNaryFunctionConversion

Represents non boolean function argument conversion rule.

C#
public static readonly ArgumentConversionRules NonBoolNumberFunctionConversion

Represents number function argument conversion rule.

C#
public static readonly ArgumentConversionRules NumberFunctionConversion

Properties

Gets the array argument interpretation.

C#
public ArrayArgumentInterpretation ArrayArgument { get; }
Property Value:

The array argument interpretation.

How to interpret a boolean value passed directly as a function argument.

C#
public ArgumentInterpretation BoolDirectArgument { get; }
Property Value:

The boolean direct argument interpretation.

How to interpret a boolean value from a cell reference or range passed as a function argument.

C#
public ArgumentInterpretation BoolIndirectArgument { get; }
Property Value:

The boolean indirect argument interpretation.

How to interpret an empty value passed directly as a function argument.

C#
public ArgumentInterpretation EmptyDirectArgument { get; }
Property Value:

The empty direct argument interpretation.

How to interpret an empty value from a cell reference or range passed as a function argument.

C#
public ArgumentInterpretation EmptyIndirectArgument { get; }
Property Value:

The empty indirect argument interpretation.

How to interpret text that cannot be parsed as a number when passed directly as a function argument.

C#
public ArgumentInterpretation NonTextNumberDirectArgument { get; }
Property Value:

The non text number direct argument interpretation.

Gets the non text number indirect argument interpretation.

C#
public ArgumentInterpretation NonTextNumberIndirectArgument { get; }
Property Value:

The non text number indirect argument interpretation.

How to interpret a numeric value passed directly as a function argument.

C#
public ArgumentInterpretation NumberDirectArgument { get; }
Property Value:

The number direct argument interpretation.

How to interpret a numeric value from a cell reference or range passed as a function argument.

C#
public ArgumentInterpretation NumberIndirectArgument { get; }
Property Value:

The number indirect argument interpretation.

How to interpret text that can be parsed as a number when passed directly as a function argument.

C#
public ArgumentInterpretation TextNumberDirectArgument { get; }
Property Value:

The text number direct argument interpretation.

Gets the text number indirect argument interpretation.

C#
public ArgumentInterpretation TextNumberIndirectArgument { get; }
Property Value:

The text number indirect argument interpretation.