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