Xceed Chart for WinForms v4.4 Documentation
LoadFromFile Method
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > ChartControlStateBase Class : LoadFromFile Method
A relative or absolute path for the input file.
Loads an existing chart state to the chart control from a binary file.
Syntax
'Declaration
 
Public Sub LoadFromFile( _
   ByVal filePath As String _
) 
'Usage
 
Dim instance As ChartControlStateBase
Dim filePath As String
 
instance.LoadFromFile(filePath)
public void LoadFromFile( 
   string filePath
)

Parameters

filePath
A relative or absolute path for the input file.
Example
The following example loads a new state and repaints the control:
nChartControl1.State.LoadFromFile("c:\chart.bin")
 nChartControl1.Refresh()
nChartControl1.State.LoadFromFile("c:\\chart.bin");
 nChartControl1.Refresh();
Requirements

Target Platforms: 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

See Also

Reference

ChartControlStateBase Class
ChartControlStateBase Members