# C1.Win.Input.Validation.PlaceholderCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Validation_PlaceholderCollection" data-uid="C1.Win.Input.Validation.PlaceholderCollection" class="text-break">PlaceholderCollection Class
</h1>
  <div class="markdown level0 summary"><p>A collection of CustomPlaceholder objects.</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.CustomPlaceholder.html">CustomPlaceholder</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;<a class="xref" href="C1.Win.Input.Validation.CustomPlaceholder.html">CustomPlaceholder</a>&gt;</div>
    <div class="level3"><span class="xref">PlaceholderCollection</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.CustomPlaceholder.html">CustomPlaceholder</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.CustomPlaceholder.html">CustomPlaceholder</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.CustomPlaceholder.html">CustomPlaceholder</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.CustomPlaceholder.html">CustomPlaceholder</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.CustomPlaceholder.html">CustomPlaceholder</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</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_PlaceholderCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class PlaceholderCollection : ObservableCollection&lt;CustomPlaceholder&gt;, IList&lt;CustomPlaceholder&gt;, ICollection&lt;CustomPlaceholder&gt;, IList, ICollection, IReadOnlyList&lt;CustomPlaceholder&gt;, IReadOnlyCollection&lt;CustomPlaceholder&gt;, IEnumerable&lt;CustomPlaceholder&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class PlaceholderCollection
    Inherits ObservableCollection(Of CustomPlaceholder)
    Implements IList(Of CustomPlaceholder), ICollection(Of CustomPlaceholder), IList, ICollection, IReadOnlyList(Of CustomPlaceholder), IReadOnlyCollection(Of CustomPlaceholder), IEnumerable(Of CustomPlaceholder), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</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_Input_Validation_PlaceholderCollection__ctor_System_String_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.#ctor(System.String)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.-ctor.html#C1_Win_Input_Validation_PlaceholderCollection__ctor_System_String_">PlaceholderCollection(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.html">PlaceholderCollection</a> class.</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_Input_Validation_PlaceholderCollection_AddRange_C1_Win_Input_Validation_CustomPlaceholder___" data-uid="C1.Win.Input.Validation.PlaceholderCollection.AddRange(C1.Win.Input.Validation.CustomPlaceholder[])">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.AddRange.html#C1_Win_Input_Validation_PlaceholderCollection_AddRange_C1_Win_Input_Validation_CustomPlaceholder___">AddRange(CustomPlaceholder[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the special characters of an ICollection to the end of the PlaceholderCollection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_CheckItemBeforeAdding_C1_Win_Input_Validation_CustomPlaceholder_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.CheckItemBeforeAdding(C1.Win.Input.Validation.CustomPlaceholder)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.CheckItemBeforeAdding.html#C1_Win_Input_Validation_PlaceholderCollection_CheckItemBeforeAdding_C1_Win_Input_Validation_CustomPlaceholder_">CheckItemBeforeAdding(CustomPlaceholder)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks validity of the placeholder</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_Contains_System_Char_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.Contains(System.Char)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.Contains.html#C1_Win_Input_Validation_PlaceholderCollection_Contains_System_Char_">Contains(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether a character is in the placeholder collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_GetItem_System_Char_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.GetItem(System.Char)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.GetItem.html#C1_Win_Input_Validation_PlaceholderCollection_GetItem_System_Char_">GetItem(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the CustomPlaceholder object corresponding to the character argument, or null if it does not belong to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_IndexOf_System_Char_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.IndexOf(System.Char)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.IndexOf.html#C1_Win_Input_Validation_PlaceholderCollection_IndexOf_System_Char_">IndexOf(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of a character in the placeholder collection, or –1 if it does not belong to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_InsertItem_System_Int32_C1_Win_Input_Validation_CustomPlaceholder_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.InsertItem(System.Int32,C1.Win.Input.Validation.CustomPlaceholder)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.InsertItem.html#C1_Win_Input_Validation_PlaceholderCollection_InsertItem_System_Int32_C1_Win_Input_Validation_CustomPlaceholder_">InsertItem(int, CustomPlaceholder)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PlaceholderCollection_Remove_System_Char_" data-uid="C1.Win.Input.Validation.PlaceholderCollection.Remove(System.Char)">
          <a class="xref" href="C1.Win.Input.Validation.PlaceholderCollection.Remove.html#C1_Win_Input_Validation_PlaceholderCollection_Remove_System_Char_">Remove(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a specific character from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
