Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Forces the cache to be cleared (if caching is used).

Visual Basic
Public Sub ClearCache
C#
public void ClearCache(); 

Remarks

This function should not be called in normal use, since the cache is automatically managed by Swiff Chart Generator.
However, it can be useful for forcing the cache to be cleared.

Sample Code

The following code illustrates use of the ClearCache method.

Visual Basic
' Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Force the cache to be cleared
If is_it_midnight Then
  chart.ClearCache()
End If
C#
// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Force the cache to be cleared
if( is_it_midnight )
  chart.ClearCache();

See Also

SetMaxCacheSize Method | SetCacheName Method | SetPrivateCacheDir Method | UseCache Method

Applies To: Chart Object