New to Telerik ReportingStart a free 30-day trial

Palette item

Definition

Namespace:Telerik.Reporting.Charting

Assembly:Telerik.Reporting.dll

Syntax:

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

Inheritance: objectStateManagedObjectPaletteItem

Implements: IChartingStateManagedItemIChartingStateManager

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

Constructors

Create new instance of PaletteItem class.

C#
public PaletteItem()

Create new instance of PaletteItem class.

C#
public PaletteItem(Color mainColor, Color secondColor)
Parameters:mainColorColor

Main color of item

secondColorColor

Second color of item

Create new instance of PaletteItem class.

C#
public PaletteItem(ColorBlend additionalColors)
Parameters:additionalColorsColorBlend

Colors with positions

Create new instance of PaletteItem class.

C#
public PaletteItem(string name, Color mainColor, Color secondColor)
Parameters:namestring

Name of item

mainColorColor

Main color of item

secondColorColor

Second color of item

Create new instance of PaletteItem class.

C#
public PaletteItem(string name, ColorBlend additionalColors)
Parameters:namestring

Name of item

additionalColorsColorBlend

Colors with positions

Properties

Defines arrays of colors and positions used for interpolating color blending

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public ColorBlend AdditionalColors { get; }

Specifies the main color for palette item

C#
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color MainColor { get; set; }
Property Value:

Main color of item

Name

string

Specifies the name for palette item

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

Name of item

Specifies the second color for palette item

C#
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color SecondColor { get; set; }
Property Value:

Second color of item

Methods

Clone()

object

Clone this object

C#
public object Clone()
Returns:

object

New instance with fields equal to these ones

Load data from ViewState

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

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