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


reader

An object derived from XMLReader to read the persisted data from. Can be a .NET object or a user-defined object.


The XML reader to load the data from.

Loads serialized data into the control from an object derived from the XMLReader  class.


Loads all properties of the chart from the XML reader. By setting Content or SerializableContent/NonSerializableContent properties specific set of properties can be loaded.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Load( _
   ByVal reader As XmlReader _
) 
Visual Basic (Usage) Copy Code
Dim instance As ChartSerializer
Dim reader As XmlReader
 
instance.Load(reader)
C#  
public void Load( 
   XmlReader reader
)

Parameters

reader

An object derived from XMLReader to read the persisted data from. Can be a .NET object or a user-defined object.


The XML reader to load the data from.

Remarks

Call this method to load serialized data into the Chart control.

When a load operation occurs by default serializable properties are first reset to their default values before they are set to the persisted values (if saved). To change this behavior use the ResetWhenLoaded property.

By default all serialized chart properties will be loaded. By setting the Content, SerializableContent or NonSerializableContent properties a specific set of properties can be loaded.

When using this definition the format (set by the Format property) must be XML.

When working with XML format text files for simplicity use the Load definition that takes a fileName string parameter instead.

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.