2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.5.2 Assembly / C1.Win.C1Chart Namespace / C1Chart Class / LoadChartFromFile Method
File name

In This Topic
    LoadChartFromFile Method
    In This Topic
    Reads the chart property and data settings (chart description) from the specified file.
    Syntax
    'Declaration
     
    Public Sub LoadChartFromFile( _
       ByVal Filename As System.String _
    ) 
    public void LoadChartFromFile( 
       System.string Filename
    )

    Parameters

    Filename
    File name
    Remarks
    This method loads the contents of the specified file in XML format into the chart. The file should contain the output of a call to SaveChartToFile. If an error occurs during the file open, reading or chart drawing, an appropriate exception is thrown indicating the cause of error.
    See Also