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


stream
Template stream to load from.
The fileStream used to LoadTemplate the chart image.
Template stream to load from.

Loads a template into the control from an image stream.


Loads chart appearance template from stream.

Syntax

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

Parameters

stream
Template stream to load from.
The fileStream used to LoadTemplate the chart image.
Template stream to load from.

Remarks

Use this method if you would like to load a template from a stream (e.g. memorystream, filestream, etc.).

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.