Class ChartColorModel
ChartColorModel contains a number of predefined color palette and have custom brushes collection to populate a custom palette.
Inheritance
System.Object
ChartColorModel
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public class ChartColorModel : Object
Constructors
ChartColorModel(ChartColorPalette)
Initializes a new instance of the ChartColorModel class with single arguments
Declaration
public ChartColorModel(ChartColorPalette palette)
Parameters
Type | Name | Description |
---|---|---|
ChartColorPalette | palette |
Properties
ColorPalette
Gets or sets the color model with defined palette.
Declaration
public ChartColorPalette ColorPalette { get; set; }
Property Value
Type |
---|
ChartColorPalette |
CustomColors
Gets or sets the list of colors to be used as custom palette.
Declaration
public IList<Color> CustomColors { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<Android.Graphics.Color> |
CustomGradientColors
Gets or sets the collection of custom gradient colors in custom palette.
Declaration
public ChartGradientColorCollection CustomGradientColors { get; set; }
Property Value
Type |
---|
ChartGradientColorCollection |
Methods
GetColor(Int32)
Returns the brush at the specified index for current palette
Declaration
public Color GetColor(int colorIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | colorIndex | The color index. |
Returns
Type | Description |
---|---|
Android.Graphics.Color | The color |
GetColors(ChartColorPalette)
Returns the collection of brushes for specified palette
Declaration
public List<Color> GetColors(ChartColorPalette palette)
Parameters
Type | Name | Description |
---|---|---|
ChartColorPalette | palette | The ChartColorPalette |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Android.Graphics.Color> | List of brushes |