# FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_IManageFmtInput_ChangeText_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText*">ChangeText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_IManageFmtInput_ChangeText_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText*"></a>
<h4 id="FarPoint_Win_SuperEdit_IManageFmtInput_ChangeText_System_String_System_Int32_System_Int32_System_String_System_String__System_Int32__System_Boolean_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText(System.String,System.Int32,System.Int32,System.String,System.String@,System.Int32@,System.Boolean)">ChangeText(string, int, int, string, out string, out int, bool)</h4>
<div class="markdown level1 summary"><p>Returns the resulting text and position if the change is
allowed for the given conditions. If no changes are made
(due to invalid input), 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 ChangeText(string currText, int selStart, int selLength, string insertText, out string resultText, out int resultCaretPos, bool validateChanges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function ChangeText(currText As String, selStart As Integer, selLength As Integer, insertText As String, ByRef resultText As String, ByRef resultCaretPos As Integer, validateChanges 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.string">string</a></td>
      <td><span class="parametername">currText</span></td>
      <td><p>The current 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">selStart</span></td>
      <td><p>The selection start</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 selection length</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">insertText</span></td>
      <td><p>The insert text</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>A return 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>A return result caret position</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">validateChanges</span></td>
      <td><p>The validate change</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>true if successful;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_SuperEdit_IManageFmtInput_ChangeText_" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText*"></a>
<h4 id="FarPoint_Win_SuperEdit_IManageFmtInput_ChangeText_System_String_System_String__" data-uid="FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText(System.String,System.String@)">ChangeText(string, out string)</h4>
<div class="markdown level1 summary"><p>Returns the resulting text if the change is allowed
for the given conditions. If no changes are made
(due to invalid input), false is returned.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool ChangeText(string insertText, out string resultText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function ChangeText(insertText As String, ByRef resultText As String) 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.string">string</a></td>
      <td><span class="parametername">insertText</span></td>
      <td><p>The insert text</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>A return result text</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>true if successful;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>
</div>
