NevronOpenVision
Nevron.Nov.Chart Namespace / NSurfaceSeriesBase Class / Palette Property
Example
Palette Property (NSurfaceSeriesBase)
Gets or sets the custom palette associated with the surface. To make the chart use the custom palette you have to set the AutomaticPalette property to false.
Syntax
public NPalette Palette {get; set;}
Example
The following example enables the custom palette, clears it and adds several new entries:
surface.AutomaticPalette = False
surface.Palette.Clear()
surface.Palette.Add(0.0, Color.Purple)
surface.Palette.Add(1.5, Color.MediumSlateBlue)
surface.Palette.Add(3.0, Color.CornflowerBlue)
surface.AutomaticPalette = false;
surface.Palette.Clear();
surface.Palette.Add(0.0, Color.Purple);
surface.Palette.Add(1.5, Color.MediumSlateBlue);
surface.Palette.Add(3.0, Color.CornflowerBlue);
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also