UngroupPlots
Ungroups dataplots.
BOOL UngroupPlots( int nIndex = -1 )
TRUE for success, otherwise FALSE.
EX1
//Draw two data plots, group them then ungroup them. void GraphLayer_UngroupPlots_ex1() { Worksheet wks1; wks1.Create("origin"); Dataset ds1(wks1,0); Dataset ds2(wks1,1); ds1.Data(1,20,1); ds2.Normal(20); Worksheet wks2; wks2.Create("origin"); Dataset ds3(wks2,0); Dataset ds4(wks2,1); ds3.Data(1,20,1); ds4.Data(2,40,2); GraphPage gp; gp.Create("origin"); GraphLayer gl(gp.GetName(), 0); gl.AddPlot(wks1); gl.AddPlot(wks2); gl.GroupPlots(0); gl.UngroupPlots(); }
origin.h