DataObject

 

 

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
DataObject Default constructor for DataObject class.
ExecuteFormula Trigger the execution of Column/MatrixObject formula. Examples
GetCustomEscapedString Get the description/short name of DataRange Examples
GetFormula Get formula from Column or MatrixObject. Examples
GetInternalDataBuffer Get internal Data buffer of Column or MatrixObject. Examples
GetInternalDataType Get internal data type of one Column/MatrixObject. Examples
GetMissingValue Get the missing value of the dataObejct. Examples
GetNumericDisplayString Get numeric display string from column format and display settings Examples
IsFormulaAutoUpdate Returns the autoupdate mode for the Column/MatrixObject formula (if any). Examples
IsKeepTextOnExecuteFormula Check whether to keep text on execute formula instead of becoming missing values. Examples
ReduceSize Skip the number of points(nSkip) to reduce data for Column or MatrixObject in nStart to nEnd range. Examples
ReleaseBuffer After call SetInternalDataType and use internal data buffer modify the obeject, must call this method to update the object. Examples
SetFormula Set the column formula. Examples
SetFormulaAutoUpdate 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. Examples
SetInternalDataType Set internal data type of one Column/MatrixObject. Examples
SetKeepTextOnExecuteFormula Set keep text on execute formula instead of becoming missing values. Examples
SetMissingValue Set the missing value of the dataObejct. Examples