Nevron .NET Vision
Nevron.Chart.WinForm Namespace / NChartControlSerializer Class / LoadControlStateFromFile Method / LoadControlStateFromFile(String,PersistencyFormat,INSerializationFilter) Method
A relative or absolute path for the input file.
The format of the file.
A serialization filter.
Example


In This Topic
    LoadControlStateFromFile(String,PersistencyFormat,INSerializationFilter) Method
    In This Topic
    Loads an existing chart state to the chart control from a file.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Sub LoadControlStateFromFile( _
       ByVal filePath As System.String, _
       ByVal format As PersistencyFormat, _
       ByVal filter As INSerializationFilter _
    ) 
    'Usage
     
    
    Dim instance As NChartControlSerializer
    Dim filePath As System.String
    Dim format As PersistencyFormat
    Dim filter As INSerializationFilter
     
    instance.LoadControlStateFromFile(filePath, format, filter)
    public override void LoadControlStateFromFile( 
       System.string filePath,
       PersistencyFormat format,
       INSerializationFilter filter
    )

    Parameters

    filePath
    A relative or absolute path for the input file.
    format
    The format of the file.
    filter
    A serialization filter.
    Remarks
    The filter parameters is used only when the format is CustomXML or CustomBinary.
    Example
    The following example loads a new state and repaints the control:
    nChartControl1.Serializer.LoadControlStateFromFile("c:\chart.bin", PersistencyFormat.Binary, Nothing)
    nChartControl1.Refresh()
    nChartControl1.Serializer.LoadControlStateFromFile("c:\chart.bin", PersistencyFormat.Binary, null);
    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