Page::AddLayers

Description

Copies All layers in pageToCopyFrom (Not implemented for matrix)

Syntax

BOOL AddLayers( Page & pageToCopyFrom )

Parameters

pageToCopyFrom
[input] page from which all layers are copied

Return

returns non zero when successful else zero

Examples

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;
}

Remark

See Also

header to Include

origin.h