Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControl.ClearCache() Method

In This Article

Releases all memory resources used by the chart to cache its data in case the ChartControl.CacheToMemory is true.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.UI.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

public void ClearCache()

#Remarks

Use the ChartControl.CacheToMemory property to increase the performance of the ChartControl in case it maintains a large amount of data. Note that if the ChartControl.CacheToMemory property is set to true, the memory usage may increase greatly.

If occasionally you need to free the memory used by the ChartControl to cache its data, call the ClearCache method.

See Also