# C1.Util.DX.DirectWrite.TextAnalyzer1.GetTextComplexity

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetTextComplexity_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetTextComplexity*">GetTextComplexity Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetTextComplexity_" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetTextComplexity*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextAnalyzer1_GetTextComplexity_System_String_System_Int32_C1_Util_DX_DirectWrite_FontFace_C1_Util_DX_Bool__System_Int32_System_Int16___" data-uid="C1.Util.DX.DirectWrite.TextAnalyzer1.GetTextComplexity(System.String,System.Int32,C1.Util.DX.DirectWrite.FontFace,C1.Util.DX.Bool@,System.Int32,System.Int16[])">GetTextComplexity(string, int, FontFace, out Bool, int, short[])</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteTextAnalyzer1::GetTextComplexity([In, Buffer] const wchar_t* textString,[In] unsigned int textLength,[In] IDWriteFontFace* fontFace,[Out] BOOL* isTextSimple,[In] unsigned int* textLengthRead,[Out, Buffer, Optional] unsigned short* glyphIndices)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetTextComplexity(string textString, int textLength, FontFace fontFace, out Bool isTextSimple, int textLengthRead, short[] glyphIndices)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetTextComplexity(textString As String, textLength As Integer, fontFace As FontFace, ByRef isTextSimple As Bool, textLengthRead As Integer, glyphIndices As Short())</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">textString</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFace.html">FontFace</a></td>
      <td><span class="parametername">fontFace</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Bool.html">Bool</a></td>
      <td><span class="parametername">isTextSimple</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textLengthRead</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a>[]</td>
      <td><span class="parametername">glyphIndices</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
