Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Forces caching to be used or not.
Public Sub UseCache( use_cache As Boolean )
public void UseCache( bool use_cache );
Chart Caching is always used when the following methods are called to generate the chart: GetHTMLTag and GetOutputLocation. Therefore using UseCache before calling one of these methods has no effect.
However, you may want to use chart caching when generating charts through other methods.
This method overrides the Force Use Cache parameter value in the Swiff Chart Generator Control Panel as well as in the swfchart.ini configuration file
The following code illustrates use of the UseCache method.
' Create the chart series chart.SetDataFromTxtFile("C:\\myData.txt") chart.LoadStyle("C:\\myStyle.scs") ' Please use chart caching chart.UseCache( True )
// Create the chart series chart.SetDataFromTxtFile("C:\\myData.txt"); chart.LoadStyle("C:\\myStyle.scs"); // Please use chart caching chart.UseCache(true);
SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method
Applies To: Chart Object