Class
ArgumentInfo

Metadata describing a function argument including its name, expected type, description, and whether it is required or optional. Use this for function documentation and validation.

Definition

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

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class ArgumentInfo

Inheritance: objectArgumentInfo

Constructors

ArgumentInfo(string, string, ArgumentType, bool, string, string)

Initializes a new instance of the ArgumentInfo class with metadata for a function argument, optionally supporting localization.

Declaration

cs-api-definition
public ArgumentInfo(string name, string description, ArgumentType type, bool isRequired = true, string nameLocalizationKey = null, string descriptionLocalizationKey = null)

Parameters

name

string

The name of the argument.

description

string

The description of the argument.

type

ArgumentType

The type type of the argument.

isRequired

bool

Boolean indicating whether the argument is required or optional. If it is required, it should be set to true.

nameLocalizationKey

string

The localization key of the name of the argument.

descriptionLocalizationKey

string

The localization key of the description of the argument.

Properties

Description

The human-readable description explaining what the argument does.

Declaration

cs-api-definition
public string Description { get; }

Property Value

string

The description.

DescriptionLocalizationKey

The localization resource key for the argument description.

Declaration

cs-api-definition
public string DescriptionLocalizationKey { get; }

Property Value

string

The description localization key.

Name

The argument's display name.

Declaration

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

Property Value

string

The name.

NameLocalizationKey

The localization resource key for the argument name.

Declaration

cs-api-definition
public string NameLocalizationKey { get; }

Property Value

string

The name localization key.

Type

The expected data type for this argument.

Declaration

cs-api-definition
public ArgumentType Type { get; }

Property Value

ArgumentType

The type.