Xceed Chart for WinForms v4.4 Documentation
Add Method (Palette)
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Palette Class : Add Method
The value of the palette entry.
The color of the palette enrty.
Adds an item with the cpesified 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 Sub Add( _

   ByVal dValue As Double, _

   ByVal color As Color _

) 
'Usage
 
Dim instance As Palette

Dim dValue As Double

Dim color As Color

 

instance.Add(dValue, color)
public void Add( 

   double dValue,

   Color color

)

Parameters

dValue
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

Reference

Palette Class
Palette Members