# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AlternationCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AlternationCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AlternationCount*">AlternationCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AlternationCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AlternationCount*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AlternationCount" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AlternationCount">AlternationCount</h4>
<div class="markdown level1 summary"><p>Gets or sets the number of alternating item containers in the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.html">GcComboBox</a>, which enables alternating containers to have a unique appearance. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int AlternationCount { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AlternationCount As Integer</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.AlternationCount.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AlternationCount">AlternationCount</a> will be set into dropdown control to support alternating item.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_AlternationCount_examples">Examples</h5>
<p>The following example creates a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.html">GcComboBox</a> and uses two <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.alternationconverter">AlternationConverter</a> objects to alternate the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control.background">Background</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control.fontstyle">FontStyle</a> of the items.</p>

</div>
