# C1.Util.DX.DirectWrite.TextAnalysisSource.GetLocaleName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetLocaleName_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetLocaleName*">GetLocaleName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetLocaleName_" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetLocaleName*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetLocaleName_System_Int32_System_Int32__" data-uid="C1.Util.DX.DirectWrite.TextAnalysisSource.GetLocaleName(System.Int32,System.Int32@)">GetLocaleName(int, out int)</h4>
<div class="markdown level1 summary"><p>Gets the locale name on the 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">string GetLocaleName(int textPosition, out int textLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetLocaleName(textPosition As Integer, ByRef textLength As Integer) As String</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 text position to examine.</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 being affected by the text analysis up to the next differing locale.</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.string">string</a></td>
      <td><p>the locale name on the range affected by the text analysis</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_TextAnalysisSource_GetLocaleName_System_Int32_System_Int32___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The localeName reference must remain valid until the next call or until the analysis returns.</p>
</div>
</div>
