XLL+ Class Library (6.3)

CXlOper::SetRefItem

Sets one of the single references in a multiple reference

CXlRef SetRefItem(
   WORD wItem,
   const CXlRef& xlr
);

Parameters

wItem

The index of the range to retrieve. The first item is at position 0.

xlr

A reference to a block of cells.

Return Value

Sets the value of one of the single ranges in a multiple reference. If the CXlOper contains a single reference, and wItem is 0, then the function will affect the single reference itself.

Remarks

The function will throw an exception of type CXlBadOperTypeException if the object does not contain a single or multiple reference, or of type CXlOutOfRangeException if wItem is out of range.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::GetRefCount() | CXlOper::GetRefItem()