Xceed Chart for WinForms v4.4 Documentation
CacheSelectionRendering Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Settings Class : CacheSelectionRendering Property
Whether or not to cache the internal image map created by the control.
Syntax
'Declaration
 
<CategoryAttribute("General")>

<DescriptionAttribute("Whether or not to cache the internal image map created by the control.")>

<DefaultValueAttribute()>

Public Property CacheSelectionRendering As Boolean
'Usage
 
Dim instance As Settings

Dim value As Boolean

 

instance.CacheSelectionRendering = value

 

value = instance.CacheSelectionRendering
[Category("General")]

[Description("Whether or not to cache the internal image map created by the control.")]

[DefaultValue()]

public bool CacheSelectionRendering {get; set;}
Remarks
When you use an interactivity operations like tooltips, events and cursors the control internally performs a render to determine the chart object under the mouse cursor. This render is cached for reuse by default, which greatly improves the speed of subsequent interactivity requests. The generated image map is automatically updated when you refresh the chart or drag it with the trackball. You may wish to turn off this cache to reduce the memory footprint of the control.
Example
The following code disables the selection cache:
ChartControl.Settings.CacheSelectionRendering = False
ChartControl.Settings.CacheSelectionRendering = false;
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

Reference

Settings Class
Settings Members