XLL+ Class Library

CXlOper::GetRef

Returns a reference to the first (or only) single reference in a single or multiple range reference

[C++]
CXlRef& GetRef();
const CXlRef& GetRef() const;

Return value

Returns a single range reference, by value or by reference. If the CXlOper contains a multiple reference, then the function will return the first single reference it contains.

Remarks

The function will assert if the object does not contain a single or multiple reference. GetRef() should be used only if IsRef() returns TRUE, as in:

if ( xlo.IsRef() )
{
    cRows = xlo.GetRef().Height();
}

Requirements

Header: xllplus.h

See Also

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