# C1.Util.DX.DirectWrite.TextAnalysisSink.SetNumberSubstitution

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalysisSink_SetNumberSubstitution_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSink.SetNumberSubstitution*">SetNumberSubstitution Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalysisSink_SetNumberSubstitution_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSink.SetNumberSubstitution*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalysisSink_SetNumberSubstitution_System_Int32_System_Int32_C1_Util_DX_DirectWrite_NumberSubstitution_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSink.SetNumberSubstitution(System.Int32,System.Int32,C1.Util.DX.DirectWrite.NumberSubstitution)">SetNumberSubstitution(int, int, NumberSubstitution)</h4>
<div class="markdown level1 summary"><p>Sets the number substitution on the text range affected by the text analysis.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetNumberSubstitution(int textPosition, int textLength, NumberSubstitution numberSubstitution)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetNumberSubstitution(textPosition As Integer, textLength As Integer, numberSubstitution As NumberSubstitution)</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">textPosition</span></td>
      <td><p>The starting position from which to report.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textLength</span></td>
      <td><p>The number of UTF16 units of the reported range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.NumberSubstitution.html">NumberSubstitution</a></td>
      <td><span class="parametername">numberSubstitution</span></td>
      <td><p>An object that holds the appropriate digits and numeric punctuation for a given locale. Use <a class="xref" href="C1.Util.DX.DirectWrite.Factory.CreateNumberSubstitution.html#C1_Util_DX_DirectWrite_Factory_CreateNumberSubstitution_C1_Util_DX_DirectWrite_NumberSubstitutionMethod_System_String_C1_Util_DX_Bool_">CreateNumberSubstitution(NumberSubstitutionMethod, string, Bool)</a> to create this object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
