GetRangeString
Get the range string to represent this object
BOOL GetRangeString( string & strRange, DWORD dwCntrl = NTYPE_AUTO )
true for success
EX1
void OriginObject_GetRangeString_Ex1(BOOL bShowPlotWithBookSheetInfo = false) { GraphPage gp = Project.Pages(); int ii = 0; DWORD dwCntrl; if(bShowPlotWithBookSheetInfo) dwCntrl = NTYPE_BOOKSHEET_XY_RANGE | NTYPE_ADD_ROW_RANGE; else dwCntrl = NTYPE_FOR_RANGE | NTYPE_ADD_ROW_RANGE; foreach(GraphLayer gl in gp.Layers) { foreach(DataPlot dp in gl.DataPlots) { string strPlotRange; BOOL bRet = dp.GetRangeString(strPlotRange, dwCntrl); out_str(strPlotRange); } } }
origin.h