# C1.WPF.Schedule.NumberStringValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_NumberStringValidator" data-uid="C1.WPF.Schedule.NumberStringValidator" class="text-break">NumberStringValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents a custom validation rule for number strings.</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.windows.controls.validationrule">ValidationRule</a></div>
    <div class="level2"><span class="xref">NumberStringValidator</span></div>
      <div class="level3"><a class="xref" href="C1.WPF.Schedule.DayOfMonthValidationRule.html">DayOfMonthValidationRule</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Schedule.dll</h6>
  <h5 id="C1_WPF_Schedule_NumberStringValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class NumberStringValidator : ValidationRule</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class NumberStringValidator
    Inherits ValidationRule</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_Schedule_NumberStringValidator__ctor" data-uid="C1.WPF.Schedule.NumberStringValidator.#ctor">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.-ctor.html#C1_WPF_Schedule_NumberStringValidator__ctor">NumberStringValidator()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_CultureProperty" data-uid="C1.WPF.Schedule.NumberStringValidator.CultureProperty">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.CultureProperty.html">CultureProperty</a>
        </td>
        <td class="markdown level1 summary"><p>The Culture attached property can be used to localize validation results:
&lt;TextBox c1sched:NumberStringValidator.Culture=''{Binding Path=CalendarHelper.Culture,
RelativeSource={RelativeSource AncestorType={x:Type c1sched:C1Scheduler}}, Mode=OneWay}''/&gt;</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_Schedule_NumberStringValidator_Format" data-uid="C1.WPF.Schedule.NumberStringValidator.Format">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.Format.html#C1_WPF_Schedule_NumberStringValidator_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets formatting strings which should be used at number conversion.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_Max" data-uid="C1.WPF.Schedule.NumberStringValidator.Max">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.Max.html#C1_WPF_Schedule_NumberStringValidator_Max">Max</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a maximum allowable value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_Min" data-uid="C1.WPF.Schedule.NumberStringValidator.Min">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.Min.html#C1_WPF_Schedule_NumberStringValidator_Min">Min</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a minimum allowable value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_ValidationCulture" data-uid="C1.WPF.Schedule.NumberStringValidator.ValidationCulture">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.ValidationCulture.html#C1_WPF_Schedule_NumberStringValidator_ValidationCulture">ValidationCulture</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets culture used for localizing validation results.
If this property is null, the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a> specified in Validate
method parameters will be used.</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_Schedule_NumberStringValidator_GetCulture_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.NumberStringValidator.GetCulture(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.GetCulture.html#C1_WPF_Schedule_NumberStringValidator_GetCulture_System_Windows_DependencyObject_">GetCulture(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of the Culture attached property for a given DependencyObject.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_SetCulture_System_Windows_DependencyObject_System_Globalization_CultureInfo_" data-uid="C1.WPF.Schedule.NumberStringValidator.SetCulture(System.Windows.DependencyObject,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.SetCulture.html#C1_WPF_Schedule_NumberStringValidator_SetCulture_System_Windows_DependencyObject_System_Globalization_CultureInfo_">SetCulture(DependencyObject, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the Culture attached property for a given DependencyObject.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_NumberStringValidator_Validate_System_Object_System_Globalization_CultureInfo_" data-uid="C1.WPF.Schedule.NumberStringValidator.Validate(System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.WPF.Schedule.NumberStringValidator.Validate.html#C1_WPF_Schedule_NumberStringValidator_Validate_System_Object_System_Globalization_CultureInfo_">Validate(object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs validation checks on a value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
