2.2.4.20.1 GraphPage::AppendLayers

Description

Append layers from the specified template to the page.

Syntax

BOOL AppendLayers( LPCSTR lpcszName )

Parameters

lpcszName
[input]Template name

Return

Returns TRUE on successful exit and FALSE on failure.

Examples

EX1

int GraphPage_AppendLayers_ex1()
{
    GraphPage gp;
    gp.Create();
    if( gp.IsValid() )
    {
        printf("%s has %d layers\n", gp.GetName(), gp.Layers.Count());
        gp.AppendLayers("origin");
        printf("Now %s has %d layers\n", gp.GetName(), gp.Layers.Count());
    }
    return 0;
}

Remark

Append layers from the specified template to the page.

See Also

GraphPage::LoadTemplate

Header to Include

origin.h