# C1.WPF.RulesManager.RulesEngineSegmentsRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_RulesEngineSegmentsRule" data-uid="C1.WPF.RulesManager.RulesEngineSegmentsRule" class="text-break">RulesEngineSegmentsRule Class
</h1>
  <div class="markdown level0 summary"><p>Rule with a specified list of <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.Segments.html#C1_WPF_RulesManager_RulesEngineSegmentsRule_Segments">Segments</a>, where each segment has a different style.</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.WPF.RulesManager.RulesEngineRule.html">RulesEngineRule</a></div>
    <div class="level2"><span class="xref">RulesEngineSegmentsRule</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_RulesEngineSegmentsRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RulesEngineSegmentsRule : RulesEngineRule, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RulesEngineSegmentsRule
    Inherits RulesEngineRule
    Implements 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_WPF_RulesManager_RulesEngineSegmentsRule__ctor" data-uid="C1.WPF.RulesManager.RulesEngineSegmentsRule.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.-ctor.html#C1_WPF_RulesManager_RulesEngineSegmentsRule__ctor">RulesEngineSegmentsRule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.html">RulesEngineSegmentsRule</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_RulesEngineSegmentsRule_Segments" data-uid="C1.WPF.RulesManager.RulesEngineSegmentsRule.Segments">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.Segments.html#C1_WPF_RulesManager_RulesEngineSegmentsRule_Segments">Segments</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of segments which defines the rule.</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_RulesEngineSegmentsRule_GetApplicableFields_C1_WPF_RulesManager_RulesEngineSource_" data-uid="C1.WPF.RulesManager.RulesEngineSegmentsRule.GetApplicableFields(C1.WPF.RulesManager.RulesEngineSource)">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.GetApplicableFields.html#C1_WPF_RulesManager_RulesEngineSegmentsRule_GetApplicableFields_C1_WPF_RulesManager_RulesEngineSource_">GetApplicableFields(RulesEngineSource)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the fields from the source where this rule is applicable</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesEngineSegmentsRule_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_" data-uid="C1.WPF.RulesManager.RulesEngineSegmentsRule.GetStyle(C1.WPF.RulesManager.RulesEngineSource,System.Int32,System.String)">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.GetStyle.html#C1_WPF_RulesManager_RulesEngineSegmentsRule_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_">GetStyle(RulesEngineSource, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style for the specified <code class="paramref">source</code>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
