XYRange
The XYRange class provides methods to get, put the data range with one independent(X) and one dependent(Y) dataset for matrix and worksheet window, and do plot on a graph window. Same as DataRange class, itself does not hold data, just keep the data range with page name, sheet name (layer index for graph) and row/column indices (data plot index for graph). One XYRange object allow containing multiple sub XY data ranges.
The XYRange class is derived from the DataRange class from which it inherits methods and properties.
EX1
void XYRange_XYRange_ex1() { //assume there exists an worksheet with at least two columns Worksheet wks = Project.ActiveLayer(); if ( wks ) { DataRange dataRange; dataRange.Add(wks, 0, "X", 0, 0, 4); dataRange.Add(wks, 1, "Y", 1, 0, 4); //four data in each sub range XYRange xyCloned(dataRange); string strDescription = xyCloned.GetDescription(); out_str(strDescription); return; } }
origin.h