2.1.14.3.22 page_get_template_name


Description

Get page template name

Syntax

string page_get_template_name( Page pg, bool bAddExt = true )

Parameters

pg
[input] the source page to query
bAddExt
[input] whether to add extension to the template name

Return

return the template name, return empty string on failure.

Examples

EX1

void    page_get_template_name_ex1()
{
    Layer ly = Project.ActiveLayer();
    if ( ly )
    {
        Page pg = ly.GetPage();
        string strTplName = page_get_template_name(pg, true);
        out_str("Template name of the active page is : " + strTplName);
    }
}

Remark

See Also

Header to Included

origin.h

Reference