Dundas Chart for ASP.NET
LoadTemplate(String) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Chart Class > LoadTemplate Method : LoadTemplate(String) Method


name
Template file name to load from.
The pathname of the template to be loaded from disk.
Template file name to load from.

Loads a template from disk using the specified filename.


Loads chart appearance template from file.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub LoadTemplate( _
   ByVal name As String _
) 
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim name As String
 
instance.LoadTemplate(name)
C#  
public void LoadTemplate( 
   string name
)

Parameters

name
Template file name to load from.
The pathname of the template to be loaded from disk.
Template file name to load from.

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.