XLL+ Class Library (6.3)

CXlConstCell Class

A read-only reference to a single item within an array CXlOper.

class CXlConstCell

Overview

A CXlConstCell object represents a single item within a CXlOper array. It is created by calling CXlOper::Cell on a read-only CXlOper which, if it succeeds, returns a new CXlConstCell object.

You can use the CXlConstCell object to read the contents of the item within the CXlOper array. Many of the same methods as offered by CXlCell are available to CXlCell. Many are excluded, including all methods that write to the cell.

Because Excel 2007 and earlier versions of Excel use different XLOPER structures, code that directly reads or writes the structure must be aware of which version of Excel it is using. The CXlConstCell class wraps these differences, so that you can ignore which version of Excel is being run.

Data types

The table below lists the data types supported by the CXlConstCell class.

Type 'C' type Description
xltypeNum double IEEE floating-point number (8 bytes)
xltypeStr LPSTR Under Excel 2003 and below: an ASCII string (limited to 255 characters)
xltypeStr LPWSTR Under Excel 2007 and above: a Unicode string (limited to 32,767 characters)
xltypeBool BOOL Boolean
xltypeInt short int Under Excel 2003 and below: a 16-bit integer
xltypeInt int Under Excel 2007 and above: a 32-bit integer

Requirements

Header: xllplus.h

See Also

CXlConstCell Methods | xllplus.h | CXlCell | CXlOper::Cell | CXlOper