Combine legends of all layers and show on one layer
bool legend_combine( GraphPage & gp, int nLayerHasLegend = 0, bool bAscending = true, bPlotAscending = true )
If success then true else false
EX1
//For this example to run, make sure the active window is a graph page with at least one layer //and the first layer must exist at least one dataplot in it void legend_combine_ex1() { GraphPage gp = Project.Pages(-1); // get active graph page legend_combine(gp, 0); // combine legends from all layers to the first layer }
origin.h