XLL+ Class Library (7.0)

Argument Element

An Argument element is an optional element which controls the wrapping of a single named argument.

Attributes

Name

Required. The name of the argument as it appears in the Name attribute of the XlArgument element in the model file.

IsDate

If 1, then the argument will be treated as a date (or an array of dates). In the wrapper class, the argument's type will be DateTime (or DateTime[] or DateTime[,] for an array). If 0 or omitted, then the argument's type will be treated normally.

WrappedName

If this attribute is provided, then it will be used as the name of the argument in the wrapper function. This can be useful in avoiding reserved words, or other naming conflicts.

Type

The argument type, as it will appear in the C# wrapper function. Only the following basic types are supported: bool, DateTime, double, int, string, object. The return type may be a scalar (e.g. int), a vector (e.g. int[]) or a matrix (e.g. int[,]). An argument that accepts a vector or matrix of mixed types should use object[] or object[,] respectively. An argument that accepts a variety of different input types should use object.

Element Information

Number of occurrences

Unlimited

Parent elements

Function 

Child elements

(No child elements)

See Also

XLL Wrapper Generator Schema