In This Article

PieSlicePaletteStyleSelector Class

Selects a style for a given PieSlice using a palette of colors.

public class PieSlicePaletteStyleSelector : PaletteStyleSelectorBase<PaletteData>, IPieSliceStyleSelector
Inheritance:
object PaletteStyleSelectorBase<PaletteData> object
Implements:
IPieSliceStyleSelector

Constructors

PieSlicePaletteStyleSelector()

Initializes an instance of the class.

public PieSlicePaletteStyleSelector()

PieSlicePaletteStyleSelector(Palette?)

Initializes an instance of the class.

public PieSlicePaletteStyleSelector(Palette? palette)
Parameter Type Description
palette Palette

The Palette of colors to use.

Methods

SelectChildPieSliceStyle(int, int, Color, Style?)

Selects the child pie slice style. The Style must have TargetType of PieSlice.

public Style? SelectChildPieSliceStyle(int pieSliceIndex, int pieSliceCount, Color parentFill, Style? defaultStyle)
Parameter Type Description
pieSliceIndex int

Index of the pie slice.

pieSliceCount int

The pie slice count.

parentFill Color

The parent fill color.

defaultStyle Style

The default style.

Returns

Style:

A Style for PieSlice.

SelectPieSliceStyle(int, int, Style?)

Selects the pie slice style. The Style must have TargetType of PieSlice.

public Style? SelectPieSliceStyle(int pieSliceIndex, int pieSliceCount, Style? defaultStyle)
Parameter Type Description
pieSliceIndex int

Index of the pie slice.

pieSliceCount int

The pie slice count.

defaultStyle Style

The default style.

Returns

Style:

A Style for PieSlice.

Inherited Members

Extension Methods