Xceed Chart for WinForms v4.4 Documentation
SyncPaletteWithAxisScale Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > SurfaceSeriesBase Class : SyncPaletteWithAxisScale Property
Synchronizes the number of palette entries in the automatic palette with the current scale of the vertical axis on which the series is displayed. Valid only when AutomaticPalette is set to true. Otherwise the PaletteSteps property is considered.
Syntax
'Declaration
 
<CategoryAttribute("Palette")>
<DescriptionAttribute("Synchronizes the automatic palette with the current scale of the vertical axis.")>
<DefaultValueAttribute()>
Public Property SyncPaletteWithAxisScale As Boolean
'Usage
 
Dim instance As SurfaceSeriesBase
Dim value As Boolean
 
instance.SyncPaletteWithAxisScale = value
 
value = instance.SyncPaletteWithAxisScale
[Category("Palette")]
[Description("Synchronizes the automatic palette with the current scale of the vertical axis.")]
[DefaultValue()]
public bool SyncPaletteWithAxisScale {get; set;}
Example
The code below disables the property, so that the user can specify the number of palette steps manually:
surface.SyncPaletteWithAxisScale = False
surface.SyncPaletteWithAxisScale = 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

SurfaceSeriesBase Class
SurfaceSeriesBase Members