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 a new instance of the PieSlicePaletteStyleSelector class.
public PieSlicePaletteStyleSelector()
PieSlicePaletteStyleSelector(Palette)
Initializes a new instance of the PieSlicePaletteStyleSelector class.
public PieSlicePaletteStyleSelector(Palette palette)
Parameter | Type | Description |
---|---|---|
palette | Palette | The Palette of colors to use. |
Methods
SelectChildPieSliceStyle(Int32, Int32, Color, Style)
Selects the child pie slice style.
Style
must have TargetType
of PieSlice.
public 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 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. |
Returns
Inherited Members
- PaletteStyleSelectorBase<PaletteData>.UnsetStrokeThickness
- PaletteStyleSelectorBase<PaletteData>.UnsetColor
- PaletteStyleSelectorBase<PaletteData>.GetPaletteData(Int32, Int32)
- PaletteStyleSelectorBase<PaletteData>.GetSettersFromStyle(Style)
- PaletteStyleSelectorBase<PaletteData>.InvalidatePaletteData()
- PaletteStyleSelectorBase<PaletteData>.Palette
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()