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:
public class ArgumentConversionRules
Inheritance: objectArgumentConversionRules
Constructors
Initializes a new instance of the ArgumentConversionRules class.
public ArgumentConversionRules(ArgumentConversionRules conversionRules, ArrayArgumentInterpretation arrayArgument)
The conversion rules concerning the non-array argument interpretation.
arrayArgumentArrayArgumentInterpretationThe array argument interpretation.
Initializes a new instance of the ArgumentConversionRules class.
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)
The empty direct argument interpretation.
numberDirectArgumentArgumentInterpretationThe number direct argument interpretation.
boolDirectArgumentArgumentInterpretationThe boolean direct argument interpretation.
textNumberDirectArgumentArgumentInterpretationThe text number direct argument interpretation.
nonTextNumberDirectArgumentArgumentInterpretationThe non text number direct argument interpretation.
emptyIndirectArgumentArgumentInterpretationThe empty indirect argument interpretation.
numberIndirectArgumentArgumentInterpretationThe number indirect argument interpretation.
boolIndirectArgumentArgumentInterpretationThe boolean indirect argument interpretation.
textNumberIndirectArgumentArgumentInterpretationThe text number indirect argument interpretation.
nonTextNumberIndirectArgumentArgumentInterpretationThe non text number indirect argument interpretation.
arrayArgumentArrayArgumentInterpretationThe array argument interpretation.
Fields
Represents boolean function argument conversion rule.
public static readonly ArgumentConversionRules BoolFunctionConversion
Represents default value number function argument conversion rule.
public static readonly ArgumentConversionRules DefaultValueNumberFunctionConversion
Represents nary ingnore indirect number function argument conversion rule.
public static readonly ArgumentConversionRules NaryIgnoreIndirectNumberFunctionConversion
Represents nary number function argument conversion rule.
public static readonly ArgumentConversionRules NaryNumberFunctionConversion
Represents non boolean nary function argument conversion rule.
public static readonly ArgumentConversionRules NonBoolNaryFunctionConversion
Represents non boolean function argument conversion rule.
public static readonly ArgumentConversionRules NonBoolNumberFunctionConversion
Represents number function argument conversion rule.
public static readonly ArgumentConversionRules NumberFunctionConversion
Properties
Gets the array argument interpretation.
public ArrayArgumentInterpretation ArrayArgument { get; }
The array argument interpretation.
How to interpret a boolean value passed directly as a function argument.
public ArgumentInterpretation BoolDirectArgument { get; }
The boolean direct argument interpretation.
How to interpret a boolean value from a cell reference or range passed as a function argument.
public ArgumentInterpretation BoolIndirectArgument { get; }
The boolean indirect argument interpretation.
How to interpret an empty value passed directly as a function argument.
public ArgumentInterpretation EmptyDirectArgument { get; }
The empty direct argument interpretation.
How to interpret an empty value from a cell reference or range passed as a function argument.
public ArgumentInterpretation EmptyIndirectArgument { get; }
The empty indirect argument interpretation.
How to interpret text that cannot be parsed as a number when passed directly as a function argument.
public ArgumentInterpretation NonTextNumberDirectArgument { get; }
The non text number direct argument interpretation.
Gets the non text number indirect argument interpretation.
public ArgumentInterpretation NonTextNumberIndirectArgument { get; }
The non text number indirect argument interpretation.
How to interpret a numeric value passed directly as a function argument.
public ArgumentInterpretation NumberDirectArgument { get; }
The number direct argument interpretation.
How to interpret a numeric value from a cell reference or range passed as a function argument.
public ArgumentInterpretation NumberIndirectArgument { get; }
The number indirect argument interpretation.
How to interpret text that can be parsed as a number when passed directly as a function argument.
public ArgumentInterpretation TextNumberDirectArgument { get; }
The text number direct argument interpretation.
Gets the text number indirect argument interpretation.
public ArgumentInterpretation TextNumberIndirectArgument { get; }
The text number indirect argument interpretation.