# C1.Web.Mvc.InputNumber

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_InputNumber" data-uid="C1.Web.Mvc.InputNumber" class="text-break">InputNumber Class
</h1>
  <div class="markdown level0 summary"><p>The InputNumber control allows users to enter numbers.</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="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Control.html">Control</a></div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.InputBase.html">InputBase</a></div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.FormInputBase.html">FormInputBase</a></div>
    <div class="level5"><span class="xref">InputNumber</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_InputNumber_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class InputNumber : FormInputBase, IHtmlContent, ITemplate</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class InputNumber
    Inherits FormInputBase
    Implements IHtmlContent, ITemplate</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_Web_Mvc_InputNumber__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.InputNumber.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.InputNumber.-ctor.html#C1_Web_Mvc_InputNumber__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">InputNumber(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.InputNumber.html">InputNumber</a> instance.</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_Web_Mvc_InputNumber_AriaLabelledBy" data-uid="C1.Web.Mvc.InputNumber.AriaLabelledBy">
          <a class="xref" href="C1.Web.Mvc.InputNumber.AriaLabelledBy.html#C1_Web_Mvc_InputNumber_AriaLabelledBy">AriaLabelledBy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the aria-labelledby attribute of input element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Format" data-uid="C1.Web.Mvc.InputNumber.Format">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Format.html#C1_Web_Mvc_InputNumber_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format used to display the number being edited (see Globalize).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_HandleWheel" data-uid="C1.Web.Mvc.InputNumber.HandleWheel">
          <a class="xref" href="C1.Web.Mvc.InputNumber.HandleWheel.html#C1_Web_Mvc_InputNumber_HandleWheel">HandleWheel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the user can edit the value using the mouse wheel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_InputType" data-uid="C1.Web.Mvc.InputNumber.InputType">
          <a class="xref" href="C1.Web.Mvc.InputNumber.InputType.html#C1_Web_Mvc_InputNumber_InputType">InputType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the &quot;type&quot; attribute of the HTML input element hosted by the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_IsReadOnly" data-uid="C1.Web.Mvc.InputNumber.IsReadOnly">
          <a class="xref" href="C1.Web.Mvc.InputNumber.IsReadOnly.html#C1_Web_Mvc_InputNumber_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_IsRequired" data-uid="C1.Web.Mvc.InputNumber.IsRequired">
          <a class="xref" href="C1.Web.Mvc.InputNumber.IsRequired.html#C1_Web_Mvc_InputNumber_IsRequired">IsRequired</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the control value must be a number or whether it can be set to null (by deleting the content of the control).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Max" data-uid="C1.Web.Mvc.InputNumber.Max">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Max.html#C1_Web_Mvc_InputNumber_Max">Max</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the largest number that the user can enter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Min" data-uid="C1.Web.Mvc.InputNumber.Min">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Min.html#C1_Web_Mvc_InputNumber_Min">Min</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the smallest number that the user can enter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_OnClientInvalidInput" data-uid="C1.Web.Mvc.InputNumber.OnClientInvalidInput">
          <a class="xref" href="C1.Web.Mvc.InputNumber.OnClientInvalidInput.html#C1_Web_Mvc_InputNumber_OnClientInvalidInput">OnClientInvalidInput</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when invalid input is detected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_OnClientTextChanged" data-uid="C1.Web.Mvc.InputNumber.OnClientTextChanged">
          <a class="xref" href="C1.Web.Mvc.InputNumber.OnClientTextChanged.html#C1_Web_Mvc_InputNumber_OnClientTextChanged">OnClientTextChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the Text property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_OnClientValueChanged" data-uid="C1.Web.Mvc.InputNumber.OnClientValueChanged">
          <a class="xref" href="C1.Web.Mvc.InputNumber.OnClientValueChanged.html#C1_Web_Mvc_InputNumber_OnClientValueChanged">OnClientValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the Value property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Placeholder" data-uid="C1.Web.Mvc.InputNumber.Placeholder">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Placeholder.html#C1_Web_Mvc_InputNumber_Placeholder">Placeholder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string shown as a hint when the control is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_RepeatButtons" data-uid="C1.Web.Mvc.InputNumber.RepeatButtons">
          <a class="xref" href="C1.Web.Mvc.InputNumber.RepeatButtons.html#C1_Web_Mvc_InputNumber_RepeatButtons">RepeatButtons</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the spinner buttons should act as repeat buttons, firing repeatedly as the button remains pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_ShowSpinner" data-uid="C1.Web.Mvc.InputNumber.ShowSpinner">
          <a class="xref" href="C1.Web.Mvc.InputNumber.ShowSpinner.html#C1_Web_Mvc_InputNumber_ShowSpinner">ShowSpinner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the control displays spinner buttons to increment or decrement the value (the step property must be set to a non-zero value).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Step" data-uid="C1.Web.Mvc.InputNumber.Step">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Step.html#C1_Web_Mvc_InputNumber_Step">Step</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the amount to add or subtract to the Value property when the user clicks the spinner buttons.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Text" data-uid="C1.Web.Mvc.InputNumber.Text">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Text.html#C1_Web_Mvc_InputNumber_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text shown in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputNumber_Value" data-uid="C1.Web.Mvc.InputNumber.Value">
          <a class="xref" href="C1.Web.Mvc.InputNumber.Value.html#C1_Web_Mvc_InputNumber_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current value of the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
