In This Article

PaletteStyleSelectorBase<T> Class

The base class for style selectors that use palettes.

public class PaletteStyleSelectorBase<T> where T : PaletteData, new()
Type Parameters:
T -

The type of PaletteData.

Inheritance:
object object
Derived:
PieSlicePaletteStyleSelector SeriesPaletteStyleSelector

Properties

Palette

The Palette of colors to use.

public Palette? Palette { get; set; }

Property Value

Palette

Exceptions

Type Condition
ArgumentNullException

value

Methods

GetPaletteData(int, int)

Returns the proper palette data for a given item.

protected T GetPaletteData(int index, int count)
Parameter Type Description
index int

The item index.

count int

The item count.

Returns

T:

The proper palette data for a given item.

GetSettersFromStyle(Style?)

Returns the setters from style.

protected IEnumerable<Setter> GetSettersFromStyle(Style? defaultStyle)
Parameter Type Description
defaultStyle Style

The default style.

Returns

IEnumerable<Setter>:

An IEnumerable<T> of setters from a given style.

InvalidatePaletteData()

Invalidates the palette data.

protected void InvalidatePaletteData()

Fields

UnsetColor

The 'unset' color value.

protected static readonly Color UnsetColor

UnsetStrokeThickness

The 'unset' stroke thickness value.

protected const double UnsetStrokeThickness = -1.7976931348623157E+308

Inherited Members

Extension Methods