# C1.Win.Ribbon.RibbonStyle.Update

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Ribbon_RibbonStyle_Update_" data-uid="C1.Win.Ribbon.RibbonStyle.Update*">Update Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Ribbon_RibbonStyle_Update_" data-uid="C1.Win.Ribbon.RibbonStyle.Update*"></a>
<h4 id="C1_Win_Ribbon_RibbonStyle_Update_C1_Win_Ribbon_ThemeColor_C1_Win_Ribbon_ThemeLightness_" data-uid="C1.Win.Ribbon.RibbonStyle.Update(C1.Win.Ribbon.ThemeColor,C1.Win.Ribbon.ThemeLightness)">Update(ThemeColor, ThemeLightness)</h4>
<div class="markdown level1 summary"><p>Switches this <a class="xref" href="C1.Win.Ribbon.RibbonStyle.html">RibbonStyle</a> to the specified Office 365 theme.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Update(ThemeColor themeColor, ThemeLightness themeLightness)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Update(themeColor As ThemeColor, themeLightness As ThemeLightness)</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="C1.Win.Ribbon.ThemeColor.html">ThemeColor</a></td>
      <td><span class="parametername">themeColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Ribbon.ThemeLightness.html">ThemeLightness</a></td>
      <td><span class="parametername">themeLightness</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Ribbon_RibbonStyle_Update_C1_Win_Ribbon_ThemeColor_C1_Win_Ribbon_ThemeLightness__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method swithes theme for this instanse of <a class="xref" href="C1.Win.Ribbon.RibbonStyle.html">RibbonStyle</a> only, but <a class="xref" href="C1.Win.Ribbon.C1Ribbon.html">C1Ribbon</a>, <a class="xref" href="C1.Win.Ribbon.C1StatusBar.html">C1StatusBar</a> and <a class="xref" href="C1.Win.Ribbon.C1RibbonForm.html">C1RibbonForm</a> have single RibbonStyle instances.
To switch the theme for all <a class="xref" href="C1.Win.Ribbon.RibbonStyle.html">RibbonStyle</a> in all controls contained on the <a class="xref" href="C1.Win.Ribbon.C1RibbonForm.html">C1RibbonForm</a>, use the <a class="xref" href="C1.Win.Ribbon.C1RibbonForm.UpdateChildStyles.html#C1_Win_Ribbon_C1RibbonForm_UpdateChildStyles_C1_Win_Ribbon_ThemeColor_C1_Win_Ribbon_ThemeLightness_">UpdateChildStyles(ThemeColor, ThemeLightness)</a> method.</p>
</div>
</div>
