Xceed Chart for WinForms v4.4 Documentation
AutomaticPalette Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > SurfaceSeriesBase Class : AutomaticPalette Property
When set to true the component uses automatically generated surface palette. When set to False the component uses a custom defined palette (the Palette property gives access to the custom palette).
Syntax
'Declaration
 
<DefaultValueAttribute()>

<CategoryAttribute("Palette")>

<DescriptionAttribute("Switches between automatic and custom palette mode.")>

Public Property AutomaticPalette As Boolean
'Usage
 
Dim instance As SurfaceSeriesBase

Dim value As Boolean

 

instance.AutomaticPalette = value

 

value = instance.AutomaticPalette
[DefaultValue()]

[Category("Palette")]

[Description("Switches between automatic and custom palette mode.")]

public bool AutomaticPalette {get; set;}
Remarks
By default the automatic palette is enabled.
Example
The following code deactivates the automatic palette and activates the custom palette:
surface.AutomaticPalette = False
surface.AutomaticPalette = 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