Class ChartColorModel
ChartColorModel contains a number of predefined color palette and have custom brushes collection to populate a custom palette.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class ChartColorModel : Object
Constructors
ChartColorModel()
Called when instance created for ChartColorModel
Declaration
public ChartColorModel()
ChartColorModel(ChartColorPalette)
Called when instance created for ChartColorModel with single arguments
Declaration
public ChartColorModel(ChartColorPalette palette)
Parameters
Type | Name | Description |
---|---|---|
ChartColorPalette | palette |
Properties
CustomBrushes
Gets or sets the custom brushes to be used to paint the interiors of each segment or series.
Declaration
public List<Brush> CustomBrushes { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> |
Methods
GetAutumnBrushes()
Returns the brushes used for AutumnBrights palette.
Declaration
public List<Brush> GetAutumnBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | AutumnBrights Brushes |
GetBlueChromeBrushes()
Returns the brushes used for BlueChrome palette.
Declaration
public List<Brush> GetBlueChromeBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | BlueChrome Brushes |
GetBrush(Int32)
Returns the brush at the specified index for current palette
Declaration
public Brush GetBrush(int colorIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | colorIndex |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
GetBrushes(ChartColorPalette)
Returns the collection of brushes for specified pallete
Declaration
public List<Brush> GetBrushes(ChartColorPalette palette)
Parameters
Type | Name | Description |
---|---|---|
ChartColorPalette | palette | ChartColorPalette |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | List of brushes |
GetEliteBrushes()
Returns the brushes used for Elite palette.
Declaration
public List<Brush> GetEliteBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | Elite Brushes |
GetFloraHuesBrushes()
Returns the brushes used for FloraHues palette.
Declaration
public List<Brush> GetFloraHuesBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | FloraHues Brushes |
GetGreenChromeBrushes()
Returns the brushes used for GreenChrome palette.
Declaration
public List<Brush> GetGreenChromeBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | GreenChrome Brushes |
GetLightCandyBrushes()
Returns the brushes used for LightCandy palette.
Declaration
public List<Brush> GetLightCandyBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | LightCandy Brushes |
GetMetroBrushes()
Returns the brushes used for metro palette.
Declaration
public List<Brush> GetMetroBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | Metro Brushes |
GetPineappleBrushes()
Returns the brushes used for Pineapple palette.
Declaration
public List<Brush> GetPineappleBrushes()
Returns
Type |
---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> |
GetPurpleChromeBrushes()
Returns the brushes used for PurpleChrome palette.
Declaration
public List<Brush> GetPurpleChromeBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | PurpleChrome Brushes |
GetRedChromeBrushes()
Returns the brushes used for RedChrome palette.
Declaration
public List<Brush> GetRedChromeBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | RedChrome Brushes |
GetSandyBeachBrushes()
Returns the brushes used for SandyBeach palette.
Declaration
public List<Brush> GetSandyBeachBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | SandyBeach Brushes |
GetTomatoSpectrumBrushes()
Returns the brushes used for TomatoSpectrum palette.
Declaration
public List<Brush> GetTomatoSpectrumBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | TomatoSpectrum Brushes |
GetTomotoSpectramBrushes()
Returns the brushes used for TomatoSpectrum palette.
Declaration
public List<Brush> GetTomotoSpectramBrushes()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Windows.UI.Xaml.Media.Brush> | TomatoSpectrum Brushes |