New to Telerik ReportingStart a free 30-day trial

User-defined palettes collection

Definition

Namespace:Telerik.Reporting.Charting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class CustomPalettesCollection : ChartingStateManagedCollection<Palette>, IChartingStateManager

Inheritance: objectChartingStateManagedCollection<Palette>CustomPalettesCollection

Implements: IChartingStateManager

Inherited Members ChartingStateManagedCollection<Palette>.IndexOf(Palette)ChartingStateManagedCollection<Palette>.Insert(int, Palette)ChartingStateManagedCollection<Palette>.RemoveAt(int)ChartingStateManagedCollection<Palette>.Add(Palette)ChartingStateManagedCollection<Palette>.AddRange(Palette[])ChartingStateManagedCollection<Palette>.Clear()ChartingStateManagedCollection<Palette>.Contains(Palette)ChartingStateManagedCollection<Palette>.CopyTo(Palette[], int)ChartingStateManagedCollection<Palette>.Remove(Palette)ChartingStateManagedCollection<Palette>.GetEnumerator()ChartingStateManagedCollection<Palette>.LoadViewState(object)ChartingStateManagedCollection<Palette>.SaveViewState()ChartingStateManagedCollection<Palette>.SetItemDirty(Palette)ChartingStateManagedCollection<Palette>.OnInsert(int, object)ChartingStateManagedCollection<Palette>.OnInsertComplete(int, object)ChartingStateManagedCollection<Palette>.OnRemove(int, object)ChartingStateManagedCollection<Palette>.OnRemoveComplete(int, object)ChartingStateManagedCollection<Palette>.OnClear()ChartingStateManagedCollection<Palette>.OnClearComplete()ChartingStateManagedCollection<Palette>.ListChartingStateManagedCollection<Palette>.this[int]ChartingStateManagedCollection<Palette>.CountChartingStateManagedCollection<Palette>.IsReadOnly...

Constructors

Create new instance of CustomPalettesCollection class.

C#
public CustomPalettesCollection()

Methods

Indicates whether the specified palette item exists in the collection.

C#
public bool Contains(string paletteName)
Parameters:paletteNamestring

Name of palette

Returns:

bool

Whether the specified palette item exists in the collection

Returns a reference to the Palette object at the specified index.

C#
public Palette GetPalette(int index)
Parameters:indexint

Index to get palette

Returns:

Palette

Palette at specified index

Returns a reference to the Palette object by the specified name.

C#
public Palette GetPalette(string name)
Parameters:namestring

Name of palette

Returns:

Palette

Palette object with specified name

Returns the index of the specified palette item.

C#
public int IndexOf(string paletteName)
Parameters:paletteNamestring

Name of palette

Returns:

int

Index of the specified palette item

Removes palette with specified name from collection

C#
public void Remove(string paletteName)
Parameters:paletteNamestring

Name of palette