# C1.Win.RulesManager.Model.RuleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_RulesManager_Model_RuleCollection" data-uid="C1.Win.RulesManager.Model.RuleCollection" class="text-break">RuleCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the collection of 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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.bindinglist-1">BindingList</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div class="level3"><span class="xref">RuleCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icanceladdnew">ICancelAddNew</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iraiseitemchangedevents">IRaiseItemChangedEvents</a></div>
    <div><a class="xref" href="C1.Win.RulesManager.Model.IRuleCollection.html">IRuleCollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.RulesManager.Model.html">C1.Win.RulesManager.Model</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.RulesManager.4.8.dll</h6>
  <h5 id="C1_Win_RulesManager_Model_RuleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RuleCollection : BindingList&lt;IRule&gt;, IReadOnlyList&lt;IRule&gt;, IReadOnlyCollection&lt;IRule&gt;, IBindingList, IList, ICollection, ICancelAddNew, IRaiseItemChangedEvents, IRuleCollection, IList&lt;IRule&gt;, ICollection&lt;IRule&gt;, IEnumerable&lt;IRule&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RuleCollection
    Inherits BindingList(Of IRule)
    Implements IReadOnlyList(Of IRule), IReadOnlyCollection(Of IRule), IBindingList, IList, ICollection, ICancelAddNew, IRaiseItemChangedEvents, IRuleCollection, IList(Of IRule), ICollection(Of IRule), IEnumerable(Of IRule), IEnumerable</code></pre>
  </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_Win_RulesManager_Model_RuleCollection__ctor" data-uid="C1.Win.RulesManager.Model.RuleCollection.#ctor">
          <a class="xref" href="C1.Win.RulesManager.Model.RuleCollection.-ctor.html#C1_Win_RulesManager_Model_RuleCollection__ctor">RuleCollection()</a>
        </td>
        <td class="markdown level1 summary"></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_Win_RulesManager_Model_RuleCollection_AddRange_System_Collections_Generic_IEnumerable_C1_Win_RulesManager_IRule__" data-uid="C1.Win.RulesManager.Model.RuleCollection.AddRange(System.Collections.Generic.IEnumerable{C1.Win.RulesManager.IRule})">
          <a class="xref" href="C1.Win.RulesManager.Model.RuleCollection.AddRange.html#C1_Win_RulesManager_Model_RuleCollection_AddRange_System_Collections_Generic_IEnumerable_C1_Win_RulesManager_IRule__">AddRange(IEnumerable&lt;IRule&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the IRule elements of the specified collection to the end of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Model_RuleCollection_DecreasePriority_C1_Win_RulesManager_IRule_" data-uid="C1.Win.RulesManager.Model.RuleCollection.DecreasePriority(C1.Win.RulesManager.IRule)">
          <a class="xref" href="C1.Win.RulesManager.Model.RuleCollection.DecreasePriority.html#C1_Win_RulesManager_Model_RuleCollection_DecreasePriority_C1_Win_RulesManager_IRule_">DecreasePriority(IRule)</a>
        </td>
        <td class="markdown level1 summary"><p>Decrease the priority of the specified rule in the collection.
The priority is determined by the position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Model_RuleCollection_IncreasePriority_C1_Win_RulesManager_IRule_" data-uid="C1.Win.RulesManager.Model.RuleCollection.IncreasePriority(C1.Win.RulesManager.IRule)">
          <a class="xref" href="C1.Win.RulesManager.Model.RuleCollection.IncreasePriority.html#C1_Win_RulesManager_Model_RuleCollection_IncreasePriority_C1_Win_RulesManager_IRule_">IncreasePriority(IRule)</a>
        </td>
        <td class="markdown level1 summary"><p>Increases the priority of the specified rule in the collection.
The priority is determined by the position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Model_RuleCollection_OnListChanged_System_ComponentModel_ListChangedEventArgs_" data-uid="C1.Win.RulesManager.Model.RuleCollection.OnListChanged(System.ComponentModel.ListChangedEventArgs)">
          <a class="xref" href="C1.Win.RulesManager.Model.RuleCollection.OnListChanged.html#C1_Win_RulesManager_Model_RuleCollection_OnListChanged_System_ComponentModel_ListChangedEventArgs_">OnListChanged(ListChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
