GetDataRange
Get Data Range for this data plot.
BOOL GetDataRange( DataRange & dr, int i1 = 0, int i2 = -1, int nDefaultDesig = OKDATAOBJ_DESIGNATION_INVALID )
TRUE if success, otherwise FALSE.
//The following code shows how to get the X column from an XY type of plot: void findxCol(int nPlot = 0) { GraphLayer gl = Project.ActiveLayer(); DataPlot dp = gl.DataPlots(nPlot); XYRange xy; Column cx; if(dp.GetDataRange(xy) && xy.GetXColumn(cx)) { string str = cx.GetName(); printf("Plot %d has X column = %s\n", nPlot+1, str); } }
origin.h