Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Palette Class
Members


In This Topic
    Palette Class
    In This Topic
    This object represents a custom palette, which assigns colors to values. It is used in variety of places where elevation information needs to be represented by colors.
    Object Model
    Palette Class
    Syntax
    'Declaration
     
    <ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
    <EditorAttribute(Xceed.Chart.Utilities.ObjectEditor, System.Drawing.Design.UITypeEditor)>
    <SerializableAttribute()>
    Public Class Palette 
    'Usage
     
    Dim instance As Palette
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [Editor(Xceed.Chart.Utilities.ObjectEditor, System.Drawing.Design.UITypeEditor)]
    [Serializable()]
    public class Palette 
    Inheritance Hierarchy

    System.Object
       Xceed.Chart.Core.Palette

    Public Properties
     NameDescription
    Public PropertyGets the number of palette items contained in the Palette object.  
    Top
    Public Methods
     NameDescription
    Public MethodAdds 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.  
    Public MethodRemoves all palette items from the palette.  
    Public MethodCreates an identical copy of this palette object  
    Public MethodCreates a user control which can be used for this object visual editing  
    Public MethodRemoves a palette item with the specified value.  
    Top
    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