XLL+ Class Library (6.3)

ple::clr::toXl<T>

Transform a value received from .NET to an Excel return value

template< class T >
std::vector<T> toXl<T>(
   array<T>^ vector
);
template< class T >
ple::mtx_ptrs<T> toXl<T>(
   array<T, 2>^ matrix
);

Parameters

vector

A CLR single-dimensional array type, whose elements are one of the following:

  • double
  • int
  • bool
matrix

A CLR two-dimensional array type, whose elements are one of the following:

  • double
  • int
  • bool

Return Value

A C++ array, that may be passed directly to the CXlOper assignment operator.

Remarks

The various forms of this template function transform CLR arrays to equivalent C++ types. The transforms are designed to ensure that the correct overload of CXlOper::= will be invoked, when the method is used to return values to Excel, e.g.:

xloResult = toXl(clrValue);

A large number of specializations exist, for transforming between similar but different types. See toXl for a complete list.

Requirements

Header: xlpclrconvert.h

See Also

Common Language Runtime support functions | toXl