# C1.Util.DX.DirectWrite.TextAnalysisSource.GetNumberSubstitution

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetNumberSubstitution_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetNumberSubstitution*">GetNumberSubstitution Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetNumberSubstitution_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetNumberSubstitution*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetNumberSubstitution_System_Int32_System_Int32__" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetNumberSubstitution(System.Int32,System.Int32@)">GetNumberSubstitution(int, out int)</h4>
<div class="markdown level1 summary"><p>Gets the number substitution from 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">NumberSubstitution GetNumberSubstitution(int textPosition, out int textLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetNumberSubstitution(textPosition As Integer, ByRef textLength As Integer) 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>Contains the length of the text, in characters, remaining in the text range up to the next differing number substitution.</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="C1.Util.DX.DirectWrite.NumberSubstitution.html">NumberSubstitution</a></td>
      <td><p>the number substitution from the text range affected by the text analysis.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetNumberSubstitution_System_Int32_System_Int32___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Any implementation should return the number substitution with an incremented reference count, and the analysis will release when finished with it (either before the next call or before it returns). However, the sink callback may hold onto it after that.</p>
</div>
</div>
