PieSliceStyleSelector Class
A base class that selects a style for a given PieSlice.
public class PieSliceStyleSelector : IPieSliceStyleSelector
- Inheritance:
- Object Object
- Implements:
- IPieSliceStyleSelector
Constructors
PieSliceStyleSelector()
public PieSliceStyleSelector()
Methods
SelectChildPieSliceStyle(Int32, Int32, Color, Style)
Selects the child pie slice style.
Style
must have TargetType
of PieSlice.
public virtual Style SelectChildPieSliceStyle(int pieSliceIndex, int pieSliceCount, Color parentFill, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
pieSliceIndex | Int32 | Index of the pie slice. |
pieSliceCount | Int32 | The pie slice count. |
parentFill | Color | The parent fill color. |
defaultStyle | Style | The default style. |
Returns
SelectPieSliceStyle(Int32, Int32, Style)
Selects the pie slice style.
Style
must have TargetType
of PieSlice.
public virtual Style SelectPieSliceStyle(int pieSliceIndex, int pieSliceCount, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
pieSliceIndex | Int32 | Index of the pie slice. |
pieSliceCount | Int32 | The pie slice count. |
defaultStyle | Style | The default style. |