# C1.Win.Input.Validation.PreValidation

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Validation_PreValidation" data-uid="C1.Win.Input.Validation.PreValidation" class="text-break">PreValidation Class
</h1>
  <div class="markdown level0 summary"><p>Validating the input string entered by the user, before parsing.</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">PreValidation</span></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_PreValidation_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(GenericInheritConverter))]
public class PreValidation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(GenericInheritConverter))&gt;
Public Class PreValidation</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_Input_Validation_PreValidation_CaseSensitive" data-uid="C1.Win.Input.Validation.PreValidation.CaseSensitive">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.CaseSensitive.html#C1_Win_Input_Validation_PreValidation_CaseSensitive">CaseSensitive</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether string comparisons are case-sensitive.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_CustomPlaceholders" data-uid="C1.Win.Input.Validation.PreValidation.CustomPlaceholders">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.CustomPlaceholders.html#C1_Win_Input_Validation_PreValidation_CustomPlaceholders">CustomPlaceholders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of user-defined characters to use in a wildcard pattern.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ErrorMessage" data-uid="C1.Win.Input.Validation.PreValidation.ErrorMessage">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ErrorMessage.html#C1_Win_Input_Validation_PreValidation_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets error message shown in the standard message box and/or in the exception.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_Inherit" data-uid="C1.Win.Input.Validation.PreValidation.Inherit">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Inherit.html#C1_Win_Input_Validation_PreValidation_Inherit">Inherit</a>
        </td>
        <td class="markdown level1 summary"><p>Manages inheritance of the PreValidation properties from the host control properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ItemSeparator" data-uid="C1.Win.Input.Validation.PreValidation.ItemSeparator">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ItemSeparator.html#C1_Win_Input_Validation_PreValidation_ItemSeparator">ItemSeparator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets string separating list items in PatternString.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_PatternString" data-uid="C1.Win.Input.Validation.PreValidation.PatternString">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.PatternString.html#C1_Win_Input_Validation_PreValidation_PatternString">PatternString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets string containing the validation pattern.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_RegexOptions" data-uid="C1.Win.Input.Validation.PreValidation.RegexOptions">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.RegexOptions.html#C1_Win_Input_Validation_PreValidation_RegexOptions">RegexOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets settings affecting regular expression matching.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_TrimEnd" data-uid="C1.Win.Input.Validation.PreValidation.TrimEnd">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.TrimEnd.html#C1_Win_Input_Validation_PreValidation_TrimEnd">TrimEnd</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether trailing spaces are removed before validation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_TrimStart" data-uid="C1.Win.Input.Validation.PreValidation.TrimStart">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.TrimStart.html#C1_Win_Input_Validation_PreValidation_TrimStart">TrimStart</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether leading spaces are removed before validation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_Validation" data-uid="C1.Win.Input.Validation.PreValidation.Validation">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validation.html#C1_Win_Input_Validation_PreValidation_Validation">Validation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the validation method.</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_PreValidation_MatchExactList_System_String_C1_Win_Input_Validation_ErrorInfo_" data-uid="C1.Win.Input.Validation.PreValidation.MatchExactList(System.String,C1.Win.Input.Validation.ErrorInfo)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.MatchExactList.html#C1_Win_Input_Validation_PreValidation_MatchExactList_System_String_C1_Win_Input_Validation_ErrorInfo_">MatchExactList(string, ErrorInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the input text matches one of the exact list items specified in PatternString.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_MatchRegex_System_String_C1_Win_Input_Validation_ErrorInfo_" data-uid="C1.Win.Input.Validation.PreValidation.MatchRegex(System.String,C1.Win.Input.Validation.ErrorInfo)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.MatchRegex.html#C1_Win_Input_Validation_PreValidation_MatchRegex_System_String_C1_Win_Input_Validation_ErrorInfo_">MatchRegex(string, ErrorInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the input text matches the regular expression pattern specified in PatternString.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_MatchWildcardPattern_System_String_System_String_" data-uid="C1.Win.Input.Validation.PreValidation.MatchWildcardPattern(System.String,System.String)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.MatchWildcardPattern.html#C1_Win_Input_Validation_PreValidation_MatchWildcardPattern_System_String_System_String_">MatchWildcardPattern(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the input text matches the specified wildcard pattern passed as argument.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_MatchWildcardPatterns_System_String_C1_Win_Input_Validation_ErrorInfo_" data-uid="C1.Win.Input.Validation.PreValidation.MatchWildcardPatterns(System.String,C1.Win.Input.Validation.ErrorInfo)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.MatchWildcardPatterns.html#C1_Win_Input_Validation_PreValidation_MatchWildcardPatterns_System_String_C1_Win_Input_Validation_ErrorInfo_">MatchWildcardPatterns(string, ErrorInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the input text matches at least one of the wildcard patterns specified in PatternString.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_OnValidated_C1_Win_Input_PreValidationEventArgs_" data-uid="C1.Win.Input.Validation.PreValidation.OnValidated(C1.Win.Input.PreValidationEventArgs)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.OnValidated.html#C1_Win_Input_Validation_PreValidation_OnValidated_C1_Win_Input_PreValidationEventArgs_">OnValidated(PreValidationEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validated.html">Validated</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_OnValidating_C1_Win_Input_PreValidationEventArgs_" data-uid="C1.Win.Input.Validation.PreValidation.OnValidating(C1.Win.Input.PreValidationEventArgs)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.OnValidating.html#C1_Win_Input_Validation_PreValidation_OnValidating_C1_Win_Input_PreValidationEventArgs_">OnValidating(PreValidationEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validating.html">Validating</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_Reset" data-uid="C1.Win.Input.Validation.PreValidation.Reset">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Reset.html#C1_Win_Input_Validation_PreValidation_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets whole PreValidation property of base control</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ResetCaseSensitive" data-uid="C1.Win.Input.Validation.PreValidation.ResetCaseSensitive">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ResetCaseSensitive.html#C1_Win_Input_Validation_PreValidation_ResetCaseSensitive">ResetCaseSensitive()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the CaseSensitive property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ResetCustomPlaceholders" data-uid="C1.Win.Input.Validation.PreValidation.ResetCustomPlaceholders">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ResetCustomPlaceholders.html#C1_Win_Input_Validation_PreValidation_ResetCustomPlaceholders">ResetCustomPlaceholders()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the CustomPlaceholders property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ResetErrorMessage" data-uid="C1.Win.Input.Validation.PreValidation.ResetErrorMessage">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ResetErrorMessage.html#C1_Win_Input_Validation_PreValidation_ResetErrorMessage">ResetErrorMessage()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the ErrorMessage property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ResetTrimEnd" data-uid="C1.Win.Input.Validation.PreValidation.ResetTrimEnd">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ResetTrimEnd.html#C1_Win_Input_Validation_PreValidation_ResetTrimEnd">ResetTrimEnd()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the TrimEnd property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ResetTrimStart" data-uid="C1.Win.Input.Validation.PreValidation.ResetTrimStart">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ResetTrimStart.html#C1_Win_Input_Validation_PreValidation_ResetTrimStart">ResetTrimStart()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the TrimStart property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ShouldSerializeCaseSensitive" data-uid="C1.Win.Input.Validation.PreValidation.ShouldSerializeCaseSensitive">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ShouldSerializeCaseSensitive.html#C1_Win_Input_Validation_PreValidation_ShouldSerializeCaseSensitive">ShouldSerializeCaseSensitive()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the CaseSensitive property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ShouldSerializeCustomPlaceholders" data-uid="C1.Win.Input.Validation.PreValidation.ShouldSerializeCustomPlaceholders">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ShouldSerializeCustomPlaceholders.html#C1_Win_Input_Validation_PreValidation_ShouldSerializeCustomPlaceholders">ShouldSerializeCustomPlaceholders()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the CustomPlaceholders property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ShouldSerializeErrorMessage" data-uid="C1.Win.Input.Validation.PreValidation.ShouldSerializeErrorMessage">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ShouldSerializeErrorMessage.html#C1_Win_Input_Validation_PreValidation_ShouldSerializeErrorMessage">ShouldSerializeErrorMessage()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the ErrorMessage property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ShouldSerializeTrimEnd" data-uid="C1.Win.Input.Validation.PreValidation.ShouldSerializeTrimEnd">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ShouldSerializeTrimEnd.html#C1_Win_Input_Validation_PreValidation_ShouldSerializeTrimEnd">ShouldSerializeTrimEnd()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the TrimEnd property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_ShouldSerializeTrimStart" data-uid="C1.Win.Input.Validation.PreValidation.ShouldSerializeTrimStart">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.ShouldSerializeTrimStart.html#C1_Win_Input_Validation_PreValidation_ShouldSerializeTrimStart">ShouldSerializeTrimStart()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the TrimStart property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_Validate_System_String_C1_Win_Input_Validation_ErrorInfo_" data-uid="C1.Win.Input.Validation.PreValidation.Validate(System.String,C1.Win.Input.Validation.ErrorInfo)">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validate.html#C1_Win_Input_Validation_PreValidation_Validate_System_String_C1_Win_Input_Validation_ErrorInfo_">Validate(string, ErrorInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the text successfully passes validation using the current settings of the PreValidation object.</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_Win_Input_Validation_PreValidation_Validated" data-uid="C1.Win.Input.Validation.PreValidation.Validated">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validated.html">Validated</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the input string value has been validated.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Validation_PreValidation_Validating" data-uid="C1.Win.Input.Validation.PreValidation.Validating">
          <a class="xref" href="C1.Win.Input.Validation.PreValidation.Validating.html">Validating</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when programmatic input string validating.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
