# C1.Util.DX.DirectWrite.TextLayout1.GetCharacterSpacing

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextLayout1_GetCharacterSpacing_" data-uid="C1.Util.DX.DirectWrite.TextLayout1.GetCharacterSpacing*">GetCharacterSpacing Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextLayout1_GetCharacterSpacing_" data-uid="C1.Util.DX.DirectWrite.TextLayout1.GetCharacterSpacing*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextLayout1_GetCharacterSpacing_System_Int32_System_Single__System_Single__System_Single__C1_Util_DX_DirectWrite_TextRange__" data-uid="C1.Util.DX.DirectWrite.TextLayout1.GetCharacterSpacing(System.Int32,System.Single@,System.Single@,System.Single@,C1.Util.DX.DirectWrite.TextRange@)">GetCharacterSpacing(int, out float, out float, out float, out TextRange)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteTextLayout1::GetCharacterSpacing([In] unsigned int currentPosition,[Out] float* leadingSpacing,[Out] float* trailingSpacing,[Out] float* minimumAdvanceWidth,[Out, Optional] DWRITE_TEXT_RANGE* textRange)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetCharacterSpacing(int currentPosition, out float leadingSpacing, out float trailingSpacing, out float minimumAdvanceWidth, out TextRange textRange)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetCharacterSpacing(currentPosition As Integer, ByRef leadingSpacing As Single, ByRef trailingSpacing As Single, ByRef minimumAdvanceWidth As Single, ByRef textRange As TextRange)</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">currentPosition</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">leadingSpacing</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">trailingSpacing</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">minimumAdvanceWidth</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.TextRange.html">TextRange</a></td>
      <td><span class="parametername">textRange</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
