# GrapeCity.Spreadsheet.Charts.ColorStyleMethod

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod" data-uid="GrapeCity.Spreadsheet.Charts.ColorStyleMethod" class="text-break">ColorStyleMethod Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how colors are picked from a <a class="xref" href="GrapeCity.Spreadsheet.Charts.ColorStyle.html">ColorStyle</a> given a zero based index and a count of objects being colored.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.Charts.html">GrapeCity.Spreadsheet.Charts</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum ColorStyleMethod</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum ColorStyleMethod</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_AcrossLinear">AcrossLinear</td>
        <td><p>The color picked from CT_ColorStyle is the index modulus the total set of colors in CT_ColorStyle.
The color has a brightness that varies from darker to lighter based on how close the index is from 0 and the count of objects being colored respectively.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_AcrossLinearReversed">AcrossLinearReversed</td>
        <td><p>The color picked from CT_ColorStyle is the index modulus the total set of colors in CT_ColorStyle.
The color has a brightness that varies from lighter to darker based on how close the index is from 0 and the count of objects being colored respectively.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_Cycle">Cycle</td>
        <td><p>The color picked from CT_ColorStyle is the index modulus the total set of colors in CT_ColorStyle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_WithinLinear">WithinLinear</td>
        <td><p>The color picked from CT_ColorStyle is the first color with a brightness that varies from darker to lighter
based on how close the index is from 0 and the count of objects being colored respectively.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ColorStyleMethod_WithinLinearReversed">WithinLinearReversed</td>
        <td><p>The color picked from CT_ColorStyle is the first color with a brightness that varies from lighter to darker
based on how close the index is from 0 and the count of objects being colored respectively.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
