In This Article

PieSliceStyleSelector Class

A base class that selects a style for a given PieSlice.

[TypeConverter(typeof(PieSliceStyleSelectorConverter))]
public class PieSliceStyleSelector : IPieSliceStyleSelector
Inheritance:
object object
Implements:
IPieSliceStyleSelector

Constructors

PieSliceStyleSelector()

Initializes an instance of the class.

public PieSliceStyleSelector()

Methods

SelectChildPieSliceStyle(int, int, Color, Style?)

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

public virtual 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 virtual 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