Class
ChartPalette

Defines the palette semantic for a ChartView instance. The palette contains GlobalEntries, which are PaletteEntry objects, not related to any particular series and the SeriesEntries collection, which may be used to define a palette for a series family - e.g. Area.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ChartPaletteConverter))]
public class ChartPalette

Inheritance: objectChartPalette

Constructors

ChartPalette()

Initializes a new instance of the ChartPalette class.

Declaration

cs-api-definition
public ChartPalette()

Fields

Empty

Declaration

cs-api-definition
public static ChartPalette Empty

Field Value

ChartPalette

Properties

GlobalEntries

Gets the collection that stores entries not related to any particular series.

Declaration

cs-api-definition
public PaletteEntryCollection GlobalEntries { get; }

Property Value

PaletteEntryCollection

IsPredefined

Gets a value indicating whether the specified palette is predefined and may not be modified by the user.

Declaration

cs-api-definition
public bool IsPredefined { get; }

Property Value

bool

Name

Gets or sets the user-friendly identifier for the palette.

Declaration

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

Property Value

string

SeriesEntries

Gets the collection with all the per-series definitions registered with the palette.

Declaration

cs-api-definition
public ChartPaletteCollection SeriesEntries { get; }

Property Value

ChartPaletteCollection

Methods

FromKnownPalette(string)

Gets the KnownPalette by the specific name.

Declaration

cs-api-definition
public static ChartPalette FromKnownPalette(string name)

Parameters

name

string

The name.

Returns

ChartPalette

GetEntry(string, int)

Gets the palette entry with the specific name.

Declaration

cs-api-definition
public PaletteEntry GetEntry(string familyName, int index)

Parameters

familyName

string

Name of the family.

index

int

The index.

Returns

PaletteEntry

OnChanged()

Called when [changed].

Declaration

cs-api-definition
protected virtual void OnChanged()

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()

Events

Changed

Occurs upon a change in some of the entries or when an entry is added/removed/replaced.

Declaration

cs-api-definition
public event EventHandler Changed

Event Value

EventHandler