2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / C1Chart Class / ColorGeneration Property

In This Topic
    ColorGeneration Property
    In This Topic
    Gets or sets a value specifying theme based automatic color generation. The default value is ColorGeneration.Custom which specifies the standard color generation method used by C1Chart. The remaining options mimic the color themes of Microsoft Office.

    A special setting for this property is ColorGeneration.CopyToCustom. When the ColorGeneration property is set to the CopyToCustom value, the current colors are copied to the Custom color generation, and the property is automatically set to ColorGeneration.Custom for further customization. Please note that this operation is automatically performed whenever the chart data is loaded by string, file or by the designer. Please also note that as color customizations are made to the LineStyle and SymbolStyle of each ChartDataSeries, these customizations affect both the current state and the Custom state values.

    Syntax
    'Declaration
     
    Public Property ColorGeneration As ColorGeneration
    public ColorGeneration ColorGeneration {get; set;}
    Remarks
    The default value is ColorGeneration.Custom which specifies the standard color generation method used by C1Chart. The remaining options mimic the color themes of Microsoft Office.

    A special setting for this property is ColorGeneration.CopyToCustom. When the ColorGeneration property is set to the CopyToCustom value, the current colors are copied to the Custom color generation, and the property is automatically set to ColorGeneration.Custom for further customization. Please note that this operation is automatically performed whenever the chart data is loaded by string, file or by the designer. Please also note that as color customizations are made to the LineStyle and SymbolStyle of each ChartDataSeries, these customizations affect both the current state and the Custom state values.

    See Also