# C1.Win.RulesManager.Rule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_RulesManager_Rule" data-uid="C1.Win.RulesManager.Rule" class="text-break">Rule Class
</h1>
  <div class="markdown level0 summary"><p>Represents conditional formatting rule.</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="C1.Win.RulesManager.Model.BaseNotifyPropertyChanged.html">BaseNotifyPropertyChanged</a></div>
    <div class="level2"><span class="xref">Rule</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.RulesManager.IRule.html">IRule</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><span class="xref">IXmlSerializable</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.RulesManager.html">C1.Win.RulesManager</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.RulesManager.10.dll</h6>
  <h5 id="C1_Win_RulesManager_Rule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Rule : BaseNotifyPropertyChanged, IRule, ICloneable, INotifyPropertyChanged, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Rule
    Inherits BaseNotifyPropertyChanged
    Implements IRule, ICloneable, INotifyPropertyChanged, IXmlSerializable</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_Rule__ctor" data-uid="C1.Win.RulesManager.Rule.#ctor">
          <a class="xref" href="C1.Win.RulesManager.Rule.-ctor.html#C1_Win_RulesManager_Rule__ctor">Rule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.Rule.html">Rule</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule__ctor_C1_Win_RulesManager_Rule_" data-uid="C1.Win.RulesManager.Rule.#ctor(C1.Win.RulesManager.Rule)">
          <a class="xref" href="C1.Win.RulesManager.Rule.-ctor.html#C1_Win_RulesManager_Rule__ctor_C1_Win_RulesManager_Rule_">Rule(Rule)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.RulesManager.Rule.html">Rule</a>.</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_Win_RulesManager_Rule_AppliesTo" data-uid="C1.Win.RulesManager.Rule.AppliesTo">
          <a class="xref" href="C1.Win.RulesManager.Rule.AppliesTo.html#C1_Win_RulesManager_Rule_AppliesTo">AppliesTo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a ItemRangeCollection collection of that specifies the range of items that the formatting rule applies to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_Enabled" data-uid="C1.Win.RulesManager.Rule.Enabled">
          <a class="xref" href="C1.Win.RulesManager.Rule.Enabled.html#C1_Win_RulesManager_Rule_Enabled">Enabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this conditional formatting is enabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_Expression" data-uid="C1.Win.RulesManager.Rule.Expression">
          <a class="xref" href="C1.Win.RulesManager.Rule.Expression.html#C1_Win_RulesManager_Rule_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value or expression associated with the conditional format or validation of data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_IsValid" data-uid="C1.Win.RulesManager.Rule.IsValid">
          <a class="xref" href="C1.Win.RulesManager.Rule.IsValid.html#C1_Win_RulesManager_Rule_IsValid">IsValid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this conditional formatting is properly customized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_Name" data-uid="C1.Win.RulesManager.Rule.Name">
          <a class="xref" href="C1.Win.RulesManager.Rule.Name.html#C1_Win_RulesManager_Rule_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets rule name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_StopIfTrue" data-uid="C1.Win.RulesManager.Rule.StopIfTrue">
          <a class="xref" href="C1.Win.RulesManager.Rule.StopIfTrue.html#C1_Win_RulesManager_Rule_StopIfTrue">StopIfTrue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a Boolean value that determines if additional formatting rules
for the item should be evaluated, if the current rule is set to True.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_Style" data-uid="C1.Win.RulesManager.Rule.Style">
          <a class="xref" href="C1.Win.RulesManager.Rule.Style.html#C1_Win_RulesManager_Rule_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item style that will be used for conditional formatting or data validation.</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_Win_RulesManager_Rule_Clone" data-uid="C1.Win.RulesManager.Rule.Clone">
          <a class="xref" href="C1.Win.RulesManager.Rule.Clone.html#C1_Win_RulesManager_Rule_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_ReadXml_System_Xml_XmlReader_" data-uid="C1.Win.RulesManager.Rule.ReadXml(System.Xml.XmlReader)">
          <a class="xref" href="C1.Win.RulesManager.Rule.ReadXml.html#C1_Win_RulesManager_Rule_ReadXml_System_Xml_XmlReader_">ReadXml(XmlReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates an <a class="xref" href="C1.Win.RulesManager.Rule.html">Rule</a> from its XML representation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_RulesManager_Rule_WriteXml_System_Xml_XmlWriter_" data-uid="C1.Win.RulesManager.Rule.WriteXml(System.Xml.XmlWriter)">
          <a class="xref" href="C1.Win.RulesManager.Rule.WriteXml.html#C1_Win_RulesManager_Rule_WriteXml_System_Xml_XmlWriter_">WriteXml(XmlWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an <a class="xref" href="C1.Win.RulesManager.Rule.html">Rule</a> into its XML representation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
