2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.5.2 Assembly / C1.Win.C1Chart Namespace / C1Chart Class / LoadChartTemplateFromString Method
String containing chart template

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

    Parameters

    str
    String containing chart template
    Remarks
    This method loads the contents of the specified string in XML format into the chart. The string should contain the output of a call to SaveChartTemplateToString. If chart element images were present at the time the SaveChartTemplateToString was called, the appropriate images are also reset to the saved values. If an error occurs during reading or chart drawing, an appropriate exception is thrown indicating the cause of error.
    See Also