Nevron .NET Vision
Nevron.Chart Namespace / NPalette Class / Add Method / Add(Double,NArgbColorValue) Method
The value of the palette entry.
The color of the palette enrty.
Example


In This Topic
    Add(Double,NArgbColorValue) Method
    In This Topic
    Adds an item with the spesified color and value to the palette. If an item with the same value already exists in the palette, it is replaced by the new one. Note that internally the component sorts the palette in ascending order so that you don't have to worry about the sequence in which you insert items.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal value As System.Double, _
       ByVal color As NArgbColorValue _
    ) 
    'Usage
     
    
    Dim instance As NPalette
    Dim value As System.Double
    Dim color As NArgbColorValue
     
    instance.Add(value, color)
    public void Add( 
       System.double value,
       NArgbColorValue color
    )

    Parameters

    value
    The value of the palette entry.
    color
    The color of the palette enrty.
    Example
    The following line of code adds an item at elevation 10.0 with red color.
    palette.Add(10.0, Color.Red)
    palette.Add(10.0, Color.Red);
    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