# GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle*">SetButtonStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_GrapeCity_Win_Spread_InputMan_CellType_KeyGroups_GrapeCity_Win_Spread_InputMan_CellType_CalculatorButtonStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle(GrapeCity.Win.Spread.InputMan.CellType.KeyGroups,GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyle)">SetButtonStyle(KeyGroups, CalculatorButtonStyle)</h4>
<div class="markdown level1 summary"><p>Drawn the defined group with the style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetButtonStyle(KeyGroups groups, CalculatorButtonStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetButtonStyle(groups As KeyGroups, style As CalculatorButtonStyle)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a></td>
      <td><span class="parametername">groups</span></td>
      <td><p>One of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a> values.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyle.html">CalculatorButtonStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyle.html">CalculatorButtonStyle</a> used to draw the given group.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_GrapeCity_Win_Spread_InputMan_CellType_KeyGroups_GrapeCity_Win_Spread_InputMan_CellType_CalculatorButtonStyle__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method applies a special <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyle.html">CalculatorButtonStyle</a> settings to a <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a> for displaying.</p>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_GrapeCity_Win_Spread_InputMan_CellType_KeyGroups_System_Drawing_Color_System_Drawing_Color_GrapeCity_Win_Spread_InputMan_CellType_TextEffect_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalculator.SetButtonStyle(GrapeCity.Win.Spread.InputMan.CellType.KeyGroups,System.Drawing.Color,System.Drawing.Color,GrapeCity.Win.Spread.InputMan.CellType.TextEffect)">SetButtonStyle(KeyGroups, Color, Color, TextEffect)</h4>
<div class="markdown level1 summary"><p>Drawn the defined group with the given style elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetButtonStyle(KeyGroups groups, Color foreColor, Color backColor, TextEffect textEffect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetButtonStyle(groups As KeyGroups, foreColor As Color, backColor As Color, textEffect As TextEffect)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a></td>
      <td><span class="parametername">groups</span></td>
      <td><p>One of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a> values.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td><p>The foreground color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>The background color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.TextEffect.html">TextEffect</a></td>
      <td><span class="parametername">textEffect</span></td>
      <td><p>One of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.TextEffect.html">TextEffect</a> values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalculator_SetButtonStyle_GrapeCity_Win_Spread_InputMan_CellType_KeyGroups_System_Drawing_Color_System_Drawing_Color_GrapeCity_Win_Spread_InputMan_CellType_TextEffect__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method applies the forecolor, the backcolor and the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.TextEffect.html">TextEffect</a> settings to a <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.KeyGroups.html">KeyGroups</a> for displaying.</p>
</div>
</div>
