【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.20.14 GraphPage::LoadTemplate
Contents
Description
Load a template into the page removing any existing layers.
Syntax
BOOL LoadTemplate( LPCSTR lpcszName )
Parameters
- lpcszName
- [input] the file name without file extension if template file under Origin installed path or user file folder (the user file folder has priority if existed the same name in two path); or the full path of the template file.
Return
Returns TRUE on successful exit and FALSE on failure.
Examples
EX1
int GraphPage_LoadTemplate_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()); gp.LoadTemplate("origin"); printf("Now %s has %d layers\n", gp.GetName(), gp.Layers.Count()); } return 0; }
Remark
See Also
Header to Include
origin.h