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.
//assume there exists an worksheet with at least two columns
Worksheet wks = Project.ActiveLayer();
if ( wks )
dataRange.Add(wks, 0, "X", 0, 0, 4);
dataRange.Add(wks, 1, "Y", 1, 0, 4); //four data in each sub range
string strDescription = xyCloned.GetDescription();