# C1.Win.RulesManager.C1RulesManager.SetC1RulesManager

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_RulesManager_C1RulesManager_SetC1RulesManager_" data-uid="C1.Win.RulesManager.C1RulesManager.SetC1RulesManager*">SetC1RulesManager Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_RulesManager_C1RulesManager_SetC1RulesManager_" data-uid="C1.Win.RulesManager.C1RulesManager.SetC1RulesManager*"></a>
<h4 id="C1_Win_RulesManager_C1RulesManager_SetC1RulesManager_System_Object_C1_Win_RulesManager_C1RulesManager_" data-uid="C1.Win.RulesManager.C1RulesManager.SetC1RulesManager(System.Object,C1.Win.RulesManager.C1RulesManager)">SetC1RulesManager(object, C1RulesManager)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="C1.Win.RulesManager.C1RulesManager.html">C1RulesManager</a> that will apply conditional formatting for this object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetC1RulesManager(object control, C1RulesManager manager)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetC1RulesManager(control As Object, manager As C1RulesManager)</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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>The object on which to set the C1RulesManager.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.RulesManager.C1RulesManager.html">C1RulesManager</a></td>
      <td><span class="parametername">manager</span></td>
      <td><p>The C1RulesManager.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
