Gets or sets the template mode of a ChartSerializer object.
Indicates that serializer works in template creation mode.
Visual Basic (Declaration) | |
---|---|
Public Property TemplateMode As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
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.
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