# FarPoint.Win.SuperEdit.IManageFmtInput.CharInput

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_IManageFmtInput_CharInput_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.CharInput*">CharInput Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_IManageFmtInput_CharInput_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.CharInput*"></a>
<h4 id="FarPoint_Win_SuperEdit_IManageFmtInput_CharInput_System_Int32_System_Char_System_String_System_Int32_System_Int32_System_String__System_Int32__System_Boolean_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.CharInput(System.Int32,System.Char,System.String,System.Int32,System.Int32,System.String@,System.Int32@,System.Boolean)">CharInput(int, char, string, int, int, out string, out int, bool)</h4>
<div class="markdown level1 summary"><p>Returns the resulting text and position if the input character is
allowed under given conditions. If not allowed, returns false.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool CharInput(int inputKey, char inputChar, string currText, int selStart, int selLength, out string resultText, out int resultCaretPos, bool overwriteMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function CharInput(inputKey As Integer, inputChar As Char, currText As String, selStart As Integer, selLength As Integer, ByRef resultText As String, ByRef resultCaretPos As Integer, overwriteMode As Boolean) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">inputKey</span></td>
      <td><p>The key need check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a></td>
      <td><span class="parametername">inputChar</span></td>
      <td><p>The character need to check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">currText</span></td>
      <td><p>The source string need to check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selStart</span></td>
      <td><p>The start index should be check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selLength</span></td>
      <td><p>The length should be check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">resultText</span></td>
      <td><p>The result text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">resultCaretPos</span></td>
      <td><p>The position of result text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">overwriteMode</span></td>
      <td><p>The flag to check with digit or not(true not allow check with digit).</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Return true if the input character is allowed under given conditions;otherwise, false.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
