Loads serialized data into the control from an object derived from the Stream class.
Loads all properties of the chart from the stream. By setting Content or SerializableContent/NonSerializableContent properties specific set of properties can be loaded.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- stream
-
An object derived from the Stream class (e.g. MemoryStream).
The stream where to load the data from.
The following example first serializes all appearance data to a memory stream (only properties with non-default values), and then loads the serialized data. Axis labels are also serialized.
Visual Basic | Copy Code |
---|---|
' Create MemoryStream object |
C# | Copy Code |
---|---|
// Create MemoryStream 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 ResetWhenLoaded property.
By default all serialized chart properties will be loaded. To load specific serialized properties set the Content , SerializableContent or NonSerializableContent properties before loading the data.
Note that when data is saved using the Save method only those properties that have non-default values are actually serialized.
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