# C1.Win.C1Input.ValueIntervalCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_ValueIntervalCollection" data-uid="C1.Win.C1Input.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.collectionbase">CollectionBase</a></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.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.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_ValueIntervalCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class ValueIntervalCollection : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class ValueIntervalCollection
    Inherits CollectionBase
    Implements IList, ICollection, IEnumerable</code></pre>
  </div>
  <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_C1Input_ValueIntervalCollection_Item_System_Int32_" data-uid="C1.Win.C1Input.ValueIntervalCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.Item.html#C1_Win_C1Input_ValueIntervalCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection element at the specified index.</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_C1Input_ValueIntervalCollection_Add_C1_Win_C1Input_ValueInterval_" data-uid="C1.Win.C1Input.ValueIntervalCollection.Add(C1.Win.C1Input.ValueInterval)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.Add.html#C1_Win_C1Input_ValueIntervalCollection_Add_C1_Win_C1Input_ValueInterval_">Add(ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new value interval to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_AddRange_C1_Win_C1Input_ValueInterval___" data-uid="C1.Win.C1Input.ValueIntervalCollection.AddRange(C1.Win.C1Input.ValueInterval[])">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.AddRange.html#C1_Win_C1Input_ValueIntervalCollection_AddRange_C1_Win_C1Input_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_C1Input_ValueIntervalCollection_Contains_C1_Win_C1Input_ValueInterval_" data-uid="C1.Win.C1Input.ValueIntervalCollection.Contains(C1.Win.C1Input.ValueInterval)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.Contains.html#C1_Win_C1Input_ValueIntervalCollection_Contains_C1_Win_C1Input_ValueInterval_">Contains(ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the collection contains the specific value interval, False otherwise.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_CopyTo_C1_Win_C1Input_ValueInterval___System_Int32_" data-uid="C1.Win.C1Input.ValueIntervalCollection.CopyTo(C1.Win.C1Input.ValueInterval[],System.Int32)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.CopyTo.html#C1_Win_C1Input_ValueIntervalCollection_CopyTo_C1_Win_C1Input_ValueInterval___System_Int32_">CopyTo(ValueInterval[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies elements of the collection to an array starting at a particular array index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_IndexOf_C1_Win_C1Input_ValueInterval_" data-uid="C1.Win.C1Input.ValueIntervalCollection.IndexOf(C1.Win.C1Input.ValueInterval)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.IndexOf.html#C1_Win_C1Input_ValueIntervalCollection_IndexOf_C1_Win_C1Input_ValueInterval_">IndexOf(ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of a specific value interval in the collection, return -1 if this item not found.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_Insert_System_Int32_C1_Win_C1Input_ValueInterval_" data-uid="C1.Win.C1Input.ValueIntervalCollection.Insert(System.Int32,C1.Win.C1Input.ValueInterval)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.Insert.html#C1_Win_C1Input_ValueIntervalCollection_Insert_System_Int32_C1_Win_C1Input_ValueInterval_">Insert(int, ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a new value interval to the collection at the specified position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_OnInsert_System_Int32_System_Object_" data-uid="C1.Win.C1Input.ValueIntervalCollection.OnInsert(System.Int32,System.Object)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.OnInsert.html#C1_Win_C1Input_ValueIntervalCollection_OnInsert_System_Int32_System_Object_">OnInsert(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_OnSet_System_Int32_System_Object_System_Object_" data-uid="C1.Win.C1Input.ValueIntervalCollection.OnSet(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.OnSet.html#C1_Win_C1Input_ValueIntervalCollection_OnSet_System_Int32_System_Object_System_Object_">OnSet(int, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_ValueIntervalCollection_Remove_C1_Win_C1Input_ValueInterval_" data-uid="C1.Win.C1Input.ValueIntervalCollection.Remove(C1.Win.C1Input.ValueInterval)">
          <a class="xref" href="C1.Win.C1Input.ValueIntervalCollection.Remove.html#C1_Win_C1Input_ValueIntervalCollection_Remove_C1_Win_C1Input_ValueInterval_">Remove(ValueInterval)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a specific value interval from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
