New to Telerik ReportingStart a free 30-day trial

Palette

Class

Series color palette. Used for an automatic series items colors assignment

Definition

Namespace:Telerik.Reporting.Charting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Palette : StateManagedObject, IChartingStateManagedItem, IChartingStateManager

Inheritance: objectStateManagedObjectPalette

Implements: IChartingStateManagedItemIChartingStateManager

Inherited Members StateManagedObject.CloneState()StateManagedObject.SetDirty()StateManagedObject.Dispose()StateManagedObject.Dispose(bool)StateManagedObject.ViewStateIgnoresCase

Constructors

Create new instance of Palette class.

C#
public Palette()

Create new instance of Palette class.

C#
public Palette(string name, Color[] colors, bool twoColors)
Parameters:namestring

Name

colorsColor[]

Colors of items

twoColorsbool

If true than second and main colors are equal

Create new instance of Palette class.

C#
public Palette(string name, Color[] mainColors, Color[] secondColors)
Parameters:namestring

Name of palette

mainColorsColor[]

Main colors of palette items

secondColorsColor[]

Second colors of palette items

Create new instance of Palette class.

C#
public Palette(string name, ColorBlend[] addtionalColors)
Parameters:namestring

Name of Palette

addtionalColorsColorBlend[]

Additional colors of palette

Create new instance of Palette class.

C#
public Palette(string name)
Parameters:namestring

Name of palette

Properties

Gets Palette Items Collection

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public PaletteItemsCollection Items { get; }

Name

string

Specifies the palette name

C#
[SkinnableProperty]
public string Name { get; set; }
Property Value:

Palette name

Gets and sets Palette item at specified index

C#
[Browsable(false)]
public PaletteItem this[int index] { get; set; }
Parameters:indexint

Index to get palette item

Property Value:

Palette item at specified index

Methods

Clone()

object

Clone this object

C#
public object Clone()
Returns:

object

New instance with the same fields as this one

Load data from ViewState

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

ViewState data

Overrides: StateManagedObject.LoadViewState(object)

Save data into ViewState

C#
protected override object SaveViewState()
Returns:

object

Saved data

Overrides: StateManagedObject.SaveViewState()

Gets string representation

C#
public override string ToString()
Returns:

string

String representation

Overrides: StateManagedObject.ToString()

Track ViewState

C#
protected override void TrackViewState()

Overrides: StateManagedObject.TrackViewState()