# C1.WPF.RulesManager.C1RulesEngine

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_C1RulesEngine" data-uid="C1.WPF.RulesManager.C1RulesEngine" class="text-break">C1RulesEngine Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.html">C1RulesEngine</a> is the engine which execute conditional formatting rules.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1RulesEngine</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IXmlSerializable</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RulesManager.html">C1.WPF.RulesManager</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RulesManager.dll</h6>
  <h5 id="C1_WPF_RulesManager_C1RulesEngine_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1RulesEngine : IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1RulesEngine
    Implements IXmlSerializable</code></pre>
  </div>
  <h5 id="C1_WPF_RulesManager_C1RulesEngine_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Conditional formatting is used to highlight important information and make data interpretation easier.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine__ctor" data-uid="C1.WPF.RulesManager.C1RulesEngine.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.-ctor.html#C1_WPF_RulesManager_C1RulesEngine__ctor">C1RulesEngine()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.html">C1RulesEngine</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine_Rules" data-uid="C1.WPF.RulesManager.C1RulesEngine.Rules">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.Rules.html#C1_WPF_RulesManager_C1RulesEngine_Rules">Rules</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection or rules this engine executes every time a style is requested through the <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.GetStyle.html#C1_WPF_RulesManager_C1RulesEngine_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_">GetStyle(RulesEngineSource, int, string)</a> method.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_" data-uid="C1.WPF.RulesManager.C1RulesEngine.GetStyle(C1.WPF.RulesManager.RulesEngineSource,System.Int32,System.String)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.GetStyle.html#C1_WPF_RulesManager_C1RulesEngine_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_">GetStyle(RulesEngineSource, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a style for the specified item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine_Load_System_IO_Stream_" data-uid="C1.WPF.RulesManager.C1RulesEngine.Load(System.IO.Stream)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.Load.html#C1_WPF_RulesManager_C1RulesEngine_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.Rules.html#C1_WPF_RulesManager_C1RulesEngine_Rules">Rules</a> definition from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine_Save_System_IO_Stream_" data-uid="C1.WPF.RulesManager.C1RulesEngine.Save(System.IO.Stream)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.Save.html#C1_WPF_RulesManager_C1RulesEngine_Save_System_IO_Stream_">Save(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.Rules.html#C1_WPF_RulesManager_C1RulesEngine_Rules">Rules</a> definition into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesEngine_RulesChanged" data-uid="C1.WPF.RulesManager.C1RulesEngine.RulesChanged">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.RulesChanged.html">RulesChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when any rule is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
