Class Palette
Series color palette. Used for an automatic series items colors assignment
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.RadChart.dll
Syntax
public class Palette : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable
Constructors
Palette()
Create new instance of Palette class.
Declaration
public Palette()
Palette(String)
Create new instance of Palette class.
Declaration
public Palette(string name)
Parameters
System.String
name
Name of palette |
Palette(String, Color[], Boolean)
Create new instance of Palette class.
Declaration
public Palette(string name, Color[] colors, bool twoColors)
Parameters
System.String
name
Name |
System.Drawing.Color[]
colors
Colors of items |
System.Boolean
twoColors
If true than second and main colors are equal |
Palette(String, Color[], Color[])
Create new instance of Palette class.
Declaration
public Palette(string name, Color[] mainColors, Color[] secondColors)
Parameters
System.String
name
Name of palette |
System.Drawing.Color[]
mainColors
Main colors of palette items |
System.Drawing.Color[]
secondColors
Second colors of palette items |
Palette(String, ColorBlend[])
Create new instance of Palette class.
Declaration
public Palette(string name, ColorBlend[] addtionalColors)
Parameters
System.String
name
Name of Palette |
ColorBlend[]
addtionalColors
Additional colors of palette |
Properties
Item[Int32]
Gets and sets Palette item at specified index
Declaration
public PaletteItem this[int index] { get; set; }
Parameters
System.Int32
index
Index to get palette item |
Property Value
PaletteItem
Palette item at specified index |
Items
Gets Palette Items Collection
Declaration
[SkinnableProperty]
public PaletteItemsCollection Items { get; }
Property Value
PaletteItemsCollection
|
Name
Specifies the palette name
Declaration
[SkinnableProperty]
public string Name { get; set; }
Property Value
System.String
Palette name |
Methods
Clone()
Clone this object
Declaration
public object Clone()
Returns
System.Object
New instance with the same fields as this one |
Implements
LoadViewState(Object)
Load data from ViewState
Declaration
protected override void LoadViewState(object savedState)
Parameters
System.Object
savedState
ViewState data |
Overrides
SaveViewState()
Save data into ViewState
Declaration
protected override object SaveViewState()
Returns
System.Object
Saved data |
Overrides
ToString()
Gets string representation
Declaration
public override string ToString()
Returns
System.String
String representation |
Overrides
TrackViewState()
Track ViewState
Declaration
protected override void TrackViewState()