DataObjectBase
The DataObjectBase class provides methods and properties common to all data objects. The Origin C DataObjectBase class is an abstract base class used for polymorphic handling of DataObject and DataPlot related class types. Consequently, Origin C objects of type DataObjectBase can not be constructed. Derived classes such as DataObject, Column, MatrixObject, and DataPlot inherit DataObjectBase class methods and should be used instead.
EX1
void DataObjectBase_ex1() { Worksheet wks; wks.Create("origin"); if(wks) { int nCol = wks.Columns("B").GetIndex(); string strNewColName; if(nCol >=0) wks.InsertCol(nCol+1, "Result", strNewColName); } }
origin.h