Class
Palette

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

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Palette : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectPalette

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

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

Constructors

Palette()

Create new instance of Palette class.

Declaration

cs-api-definition
public Palette()

Palette(string)

Create new instance of Palette class.

Declaration

cs-api-definition
public Palette(string name)

Parameters

name

string

Name of palette

Palette(string, ColorBlend[])

Create new instance of Palette class.

Declaration

cs-api-definition
public Palette(string name, ColorBlend[] addtionalColors)

Parameters

name

string

Name of Palette

addtionalColors

ColorBlend[]

Additional colors of palette

Palette(string, Color[], Color[])

Create new instance of Palette class.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
[SkinnableProperty]
public PaletteItemsCollection Items { get; }

Property Value

PaletteItemsCollection

Name

Specifies the palette name

Declaration

cs-api-definition
[SkinnableProperty]
public string Name { get; set; }

Property Value

string

Palette name

this[int]

Gets and sets Palette item at specified index

Declaration

cs-api-definition
[Browsable(false)]
public PaletteItem this[int index] { get; set; }

Parameters

index

int

Index to get palette item

Property Value

PaletteItem

Palette item at specified index

Methods

Clone()

Clone this object

Declaration

cs-api-definition
public object Clone()

Returns

object

New instance with the same fields as this one

Implements ICloneable.Clone()

LoadViewState(object)

Load data from ViewState

Declaration

cs-api-definition
protected override void LoadViewState(object savedState)

Parameters

savedState

object

ViewState data

Overrides StateManagedObject.LoadViewState(object)

SaveViewState()

Save data into ViewState

Declaration

cs-api-definition
protected override object SaveViewState()

Returns

object

Saved data

Overrides StateManagedObject.SaveViewState()

ToString()

Gets string representation

Declaration

cs-api-definition
public override string ToString()

Returns

string

String representation

Overrides StateManagedObject.ToString()

TrackViewState()

Track ViewState

Declaration

cs-api-definition
protected override void TrackViewState()

Overrides StateManagedObject.TrackViewState()