menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartColorModel - API Reference

    Show / Hide Table of Contents

    Class ChartColorModel

    ChartColorModel contains a number of predefined color palette and have custom brushes collection to populate a custom palette.

    Inheritance
    System.Object
    ChartColorModel
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class ChartColorModel

    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 Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    Methods

    GetAutumnBrushes()

    Returns the brushes used for AutumnBrights palette.

    Declaration
    public List<Brush> GetAutumnBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    AutumnBrights Brushes

    GetBlueChromeBrushes()

    Returns the brushes used for BlueChrome palette.

    Declaration
    public List<Brush> GetBlueChromeBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.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
    System.Windows.Media.Brush

    The System.Windows.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<System.Windows.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<System.Windows.Media.Brush>

    Elite Brushes

    GetFloraHuesBrushes()

    Returns the brushes used for FloraHues palette.

    Declaration
    public List<Brush> GetFloraHuesBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    FloraHues Brushes

    GetGreenChromeBrushes()

    Returns the brushes used for GreenChrome palette.

    Declaration
    public List<Brush> GetGreenChromeBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    GreenChrome Brushes

    GetLightCandyBrushes()

    Returns the brushes used for LightCandy palette.

    Declaration
    public List<Brush> GetLightCandyBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    LightCandy Brushes

    GetMetroBrushes()

    Returns the brushes used for metro palette.

    Declaration
    public List<Brush> GetMetroBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    Metro Brushes

    GetPineappleBrushes()

    Returns the brushes used for Pineapple palette.

    Declaration
    public List<Brush> GetPineappleBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    GetPurpleChromeBrushes()

    Returns the brushes used for PurpleChrome palette.

    Declaration
    public List<Brush> GetPurpleChromeBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    PurpleChrome Brushes

    GetRedChromeBrushes()

    Returns the brushes used for RedChrome palette.

    Declaration
    public List<Brush> GetRedChromeBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    RedChrome Brushes

    GetSandyBeachBrushes()

    Returns the brushes used for SandyBeach palette.

    Declaration
    public List<Brush> GetSandyBeachBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    SandyBeach Brushes

    GetTomatoSpectrumBrushes()

    Returns the brushes used for TomatoSpectrum palette.

    Declaration
    public List<Brush> GetTomatoSpectrumBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    TomatoSpectrum Brushes

    GetTomotoSpectramBrushes()

    Returns the brushes used for TomatoSpectrum palette.

    Declaration
    [Obsolete("Use GetTomatoSpectrumBrushes")]
    public List<Brush> GetTomotoSpectramBrushes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Windows.Media.Brush>

    TomatoSpectrum Brushes

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved