Class
CustomPalettesCollection

User-defined palettes collection

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
public class CustomPalettesCollection : ChartingStateManagedCollection<Palette>, IChartingStateManager, IList, ICollection, IEnumerable

Inheritance: objectChartingStateManagedCollection<Palette>CustomPalettesCollection

Implements: IChartingStateManagerICollectionIEnumerableIList

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

CustomPalettesCollection()

Create new instance of CustomPalettesCollection class.

Declaration

cs-api-definition
public CustomPalettesCollection()

Methods

Contains(string)

Indicates whether the specified palette item exists in the collection.

Declaration

cs-api-definition
public bool Contains(string paletteName)

Parameters

paletteName

string

Name of palette

Returns

bool

Whether the specified palette item exists in the collection

GetPalette(int)

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

Declaration

cs-api-definition
public Palette GetPalette(int index)

Parameters

index

int

Index to get palette

Returns

Palette

Palette at specified index

GetPalette(string)

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

Declaration

cs-api-definition
public Palette GetPalette(string name)

Parameters

name

string

Name of palette

Returns

Palette

Palette object with specified name

IndexOf(string)

Returns the index of the specified palette item.

Declaration

cs-api-definition
public int IndexOf(string paletteName)

Parameters

paletteName

string

Name of palette

Returns

int

Index of the specified palette item

Remove(string)

Removes palette with specified name from collection

Declaration

cs-api-definition
public void Remove(string paletteName)

Parameters

paletteName

string

Name of palette