# C1.WPF.RulesManager.RulesEngineSegment

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_RulesEngineSegment" data-uid="C1.WPF.RulesManager.RulesEngineSegment" class="text-break">RulesEngineSegment Class
</h1>
  <div class="markdown level0 summary"><p>A segment definition in the <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegmentsRule.html">RulesEngineSegmentsRule</a>.</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">RulesEngineSegment</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_RulesEngineSegment_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RulesEngineSegment : IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RulesEngineSegment
    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_RulesEngineSegment__ctor" data-uid="C1.WPF.RulesManager.RulesEngineSegment.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.-ctor.html#C1_WPF_RulesManager_RulesEngineSegment__ctor">RulesEngineSegment()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.html">RulesEngineSegment</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_RulesEngineSegment_Operator" data-uid="C1.WPF.RulesManager.RulesEngineSegment.Operator">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.Operator.html#C1_WPF_RulesManager_RulesEngineSegment_Operator">Operator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the operator used to compare the value against the segment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesEngineSegment_Style" data-uid="C1.WPF.RulesManager.RulesEngineSegment.Style">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.Style.html#C1_WPF_RulesManager_RulesEngineSegment_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style that will be applied when this segment is in range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesEngineSegment_Value" data-uid="C1.WPF.RulesManager.RulesEngineSegment.Value">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.Value.html#C1_WPF_RulesManager_RulesEngineSegment_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value used to determine whether this segment is in range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesEngineSegment_ValueType" data-uid="C1.WPF.RulesManager.RulesEngineSegment.ValueType">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.ValueType.html#C1_WPF_RulesManager_RulesEngineSegment_ValueType">ValueType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of the <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.Value.html#C1_WPF_RulesManager_RulesEngineSegment_Value">Value</a>.</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_RulesEngineSegment_OnSegmentChanged" data-uid="C1.WPF.RulesManager.RulesEngineSegment.OnSegmentChanged">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.OnSegmentChanged.html#C1_WPF_RulesManager_RulesEngineSegment_OnSegmentChanged">OnSegmentChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the definition of the segment changes.</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_RulesEngineSegment_SegmentChanged" data-uid="C1.WPF.RulesManager.RulesEngineSegment.SegmentChanged">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineSegment.SegmentChanged.html">SegmentChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Raised when the definition of the segment changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
