2.2.4.6 DataObject



Contents

Name

DataObject

Remark

The DataObject class is derived from the DataObjectBase class and is the base class of worksheet columns and matrix objects. Origin data objects are contained by layers on an Origin page. For example, columns (data objects) are contained by a worksheet (layer) and are on a worksheet window (page).

Hierarchy

Examples

EX1

// Create a worksheet with column formulas in place and execute
void    DataObject_Ex1()
{
    Worksheet wks;
    wks.Create("origin", CREATE_VISIBLE);
    Column col;
    col.Attach(wks, 0);
    col.SetFormula("5*(i-1)");
    BOOL bRet = col.ExecuteFormula();
}

Header to Include

origin.h

Reference

Members

Name Brief Example
Default constructor for DataObject class.
Trigger the execution of Column/MatrixObject formula.
Get the description/short name of DataRange
Get formula from Column or MatrixObject.
Get internal Data buffer of Column or MatrixObject.
Get internal data type of one Column/MatrixObject.
Get the missing value of the dataObejct.
Get numeric display string from column format and display settings
Returns the autoupdate mode for the Column/MatrixObject formula (if any).
Check whether to keep text on execute formula instead of becoming missing values.
Skip the number of points(nSkip) to reduce data for Column or MatrixObject in nStart to nEnd range.
After call SetInternalDataType and use internal data buffer modify the obeject, must call this method to update the object.
Set the column formula.
It sets the recalculate mode for the formula in Column or MatrixObject. To set the mode to the value other than AU_NONE, formula string must be present in the Column or MatrixObject.
Set internal data type of one Column/MatrixObject.
Set keep text on execute formula instead of becoming missing values.
Set the missing value of the dataObejct.