Loads a template from disk using the specified filename.
Loads chart appearance template from file.
Parameters
- name
- Template file name to load from.
The pathname of the template to be loaded from disk.
Template file name to load from.
The templateFileName argument must use a full pathname (e.g. c:\MyPic.jpg). Note that you must also specify the file extension.
This method loads a template from disk that was saved using the ChartSerializer.Save method.
Make sure to set the ChartSerializer.TemplateMode property to true before saving the template using the Save method.
If a template has two data series then the appearance properties of the series are applied sequentially to the chart. For example, if the loaded template has two series then the first template series appearance properties are assigned to the chart's first series, the second template series appearance properties are applied to the chart's second series, then the first template series is used again for the chart's third series, and so on. The same holds true for chart areas, and any other collections that have appearance properties.
Templates can be used to simulate custom palettes.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family