Dundas Chart for Windows Forms
TemplateMode Property
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > ChartSerializer Class : TemplateMode Property


Gets or sets the template mode of a ChartSerializer object.


Indicates that serializer works in template creation mode.

Syntax

Visual Basic (Declaration)  
Public Property TemplateMode As Boolean
Visual Basic (Usage) Copy Code
Dim instance As ChartSerializer
Dim value As Boolean
 
instance.TemplateMode = value
 
value = instance.TemplateMode
C#  
public bool TemplateMode {get; set;}

Return Value

If true then a chart is serialized as a template, if false it is not. Defaults to false.

Remarks

This property must be set to true before calling the ChartSerializer.Save method to serialize a chart as a template.

When a chart is serialized as a template the Chart.LoadTemplate method can then be called to load a template. When a template is loaded the appearance properties stored in the template (e.g. for the data series, chart areas, etc.) are then applied to the chart.

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

© 2009 All Rights Reserved.