Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ChartSerializer.Load Method (XmlReader)

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

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public void Load(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader
An object from which to read the persisted data. The object is derived from the XmlReader class, and can be a .NET Framework object or a user-defined object.

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 IsResetWhenLoading property.

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

When you use this definition, the format must be XML; it can be changed with the Format property.

When you work with XML format text files, for simplicity use the Load method instead.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft