Class
PaletteItem

Palette item

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

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

Inheritance: objectStateManagedObjectPaletteItem

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

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

Constructors

PaletteItem()

Create new instance of PaletteItem class.

Declaration

cs-api-definition
public PaletteItem()

PaletteItem(Color, Color)

Create new instance of PaletteItem class.

Declaration

cs-api-definition
public PaletteItem(Color mainColor, Color secondColor)

Parameters

mainColor

Color

Main color of item

secondColor

Color

Second color of item

PaletteItem(ColorBlend)

Create new instance of PaletteItem class.

Declaration

cs-api-definition
public PaletteItem(ColorBlend additionalColors)

Parameters

additionalColors

ColorBlend

Colors with positions

PaletteItem(string, Color, Color)

Create new instance of PaletteItem class.

Declaration

cs-api-definition
public PaletteItem(string name, Color mainColor, Color secondColor)

Parameters

name

string

Name of item

mainColor

Color

Main color of item

secondColor

Color

Second color of item

PaletteItem(string, ColorBlend)

Create new instance of PaletteItem class.

Declaration

cs-api-definition
public PaletteItem(string name, ColorBlend additionalColors)

Parameters

name

string

Name of item

additionalColors

ColorBlend

Colors with positions

Properties

AdditionalColors

Defines arrays of colors and positions used for interpolating color blending

Declaration

cs-api-definition
[SkinnableProperty]
public ColorBlend AdditionalColors { get; }

Property Value

ColorBlend

MainColor

Specifies the main color for palette item

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color MainColor { get; set; }

Property Value

Color

Main color of item

Name

Specifies the name for palette item

Declaration

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

Property Value

string

Name of item

SecondColor

Specifies the second color for palette item

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color SecondColor { get; set; }

Property Value

Color

Second color of item

Methods

Clone()

Clone this object

Declaration

cs-api-definition
public object Clone()

Returns

object

New instance with fields equal to these ones

Implements ICloneable.Clone()

LoadViewState(object)

Load data from ViewState

Declaration

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

Parameters

savedState

object

ViewState with 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()