It looks for the curve in the graph page.
BOOL curve_in_page_get_indices( const curvebase & cuv, const GraphPage & gpg, int * pnLayerIndex = NULL, int * pnDataPlotIndex = NULL )
TRUE if found, otherwise FALSE.
EX1
//This example use function curve_in_page_get_indices() to check whether the data //of the specified column exists in each Graph in current folder. void curve_in_page_get_indices_ex1() { Worksheet wks = Project.ActiveLayer(); if(!wks) return; Curve crv(wks, 1); Folder fld = wks.GetPage().GetFolder(); //go through all pages in folder to check GraphPage foreach(PageBase page in fld.Pages) { if(EXIST_PLOT == page.GetType()) { GraphPage gp = page; if(crv && gp) { bool bOK = curve_in_page_get_indices(crv, gp); string strCrv = crv.GetName(); string strGrp = gp.GetName(); if(bOK) { out_str(strCrv+" exists in "+strGrp); } else { out_str(strCrv+" does not exist in "+strGrp); } } } } }
curve_in_layer_get_index
origin.h