Nevron .NET Vision
Nevron.Chart Namespace / NSurfaceSeriesBase Class / Palette Property
Example


In This Topic
    Palette Property (NSurfaceSeriesBase)
    In This Topic
    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
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Palette")>
    <System.ComponentModel.DescriptionAttribute("Gets or sets the custom palette associated with the surface.")>
    Public Property Palette As NPalette
    'Usage
     
    
    Dim instance As NSurfaceSeriesBase
    Dim value As NPalette
     
    instance.Palette = value
     
    value = instance.Palette
    [System.ComponentModel.Category("Palette")]
    [System.ComponentModel.Description("Gets or sets the custom palette associated with the surface.")]
    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 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