# C1.Win.Input.Validation.ValueIntervalCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Validation_ValueIntervalCollection" data-uid="C1.Win.Input.Validation.ValueIntervalCollection" class="text-break">ValueIntervalCollection Class
</h1>
  <div class="markdown level0 summary"><p>A collection of ValueInterval objects used by a PostValidation object.
The collection is used if the Validation = PostValidationTypeEnum.ValuesAndIntervals
or if the user calls the ValidateValuesAndIntervals method.</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.Input.Validation.ValueInterval.html">ValueInterval</a>&gt;</div>
    <div class="level2"><span class="xref">ValueIntervalCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.Input.Validation.ValueInterval.html">ValueInterval</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.Input.Validation.ValueInterval.html">ValueInterval</a>&gt;</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.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.Win.Input.Validation.ValueInterval.html">ValueInterval</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.Input.Validation.ValueInterval.html">ValueInterval</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.Input.Validation.ValueInterval.html">ValueInterval</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.Input.Validation.html">C1.Win.Input.Validation</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Validation_ValueIntervalCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class ValueIntervalCollection : Collection&lt;ValueInterval&gt;, IList&lt;ValueInterval&gt;, ICollection&lt;ValueInterval&gt;, IList, ICollection, IReadOnlyList&lt;ValueInterval&gt;, IReadOnlyCollection&lt;ValueInterval&gt;, IEnumerable&lt;ValueInterval&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class ValueIntervalCollection
    Inherits Collection(Of ValueInterval)
    Implements IList(Of ValueInterval), ICollection(Of ValueInterval), IList, ICollection, IReadOnlyList(Of ValueInterval), IReadOnlyCollection(Of ValueInterval), IEnumerable(Of ValueInterval), IEnumerable</code></pre>
  </div>
  <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_Input_Validation_ValueIntervalCollection_AddRange_C1_Win_Input_Validation_ValueInterval___" data-uid="C1.Win.Input.Validation.ValueIntervalCollection.AddRange(C1.Win.Input.Validation.ValueInterval[])">
          <a class="xref" href="C1.Win.Input.Validation.ValueIntervalCollection.AddRange.html#C1_Win_Input_Validation_ValueIntervalCollection_AddRange_C1_Win_Input_Validation_ValueInterval___">AddRange(ValueInterval[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the elements of an array to the end of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_ValueIntervalCollection_InsertItem_System_Int32_C1_Win_Input_Validation_ValueInterval_" data-uid="C1.Win.Input.Validation.ValueIntervalCollection.InsertItem(System.Int32,C1.Win.Input.Validation.ValueInterval)">
          <a class="xref" href="C1.Win.Input.Validation.ValueIntervalCollection.InsertItem.html#C1_Win_Input_Validation_ValueIntervalCollection_InsertItem_System_Int32_C1_Win_Input_Validation_ValueInterval_">InsertItem(int, ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an element into the colection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_ValueIntervalCollection_SetItem_System_Int32_C1_Win_Input_Validation_ValueInterval_" data-uid="C1.Win.Input.Validation.ValueIntervalCollection.SetItem(System.Int32,C1.Win.Input.Validation.ValueInterval)">
          <a class="xref" href="C1.Win.Input.Validation.ValueIntervalCollection.SetItem.html#C1_Win_Input_Validation_ValueIntervalCollection_SetItem_System_Int32_C1_Win_Input_Validation_ValueInterval_">SetItem(int, ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the element at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
