AddLayers
Copies All layers in pageToCopyFrom (Not implemented for matrix)
BOOL AddLayers( Page & pageToCopyFrom )
returns non zero when successful else zero
EX1
int Page_AddLayers_Ex1() { // create a workbook with two worksheets FFT and IFFT WorksheetPage wksPageFrom1; wksPageFrom1.Create("FFT"); WorksheetPage wksPageFrom2; wksPageFrom2.Create("IFFT"); // create a new workbook WorksheetPage WksPageTo; WksPageTo.Create(); WksPageTo.Rename("To"); // copy add the layers from the above two books to this book WksPageTo.AddLayers(wksPageFrom1); WksPageTo.AddLayers(wksPageFrom2); WksPageTo.Layers(0).Delete(); // delete the default sheet return 0; }
origin.h