# C1.Win.C1Chart.C1Chart.ColorGeneration

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_C1Chart_ColorGeneration_" data-uid="C1.Win.C1Chart.C1Chart.ColorGeneration*">ColorGeneration Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_C1Chart_ColorGeneration_" data-uid="C1.Win.C1Chart.C1Chart.ColorGeneration*"></a>
<h4 id="C1_Win_C1Chart_C1Chart_ColorGeneration" data-uid="C1.Win.C1Chart.C1Chart.ColorGeneration">ColorGeneration</h4>
<div class="markdown level1 summary"><p>Gets or sets a value specifying theme based automatic color generation.
<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.</remarks></p>
<p>
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.
</p>

</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColorGeneration ColorGeneration { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ColorGeneration As ColorGeneration</code></pre>
</div>
</div>
