# C1.Util.DX.DirectWrite.TextFormat.SetLineSpacing

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextFormat_SetLineSpacing_" data-uid="C1.Util.DX.DirectWrite.TextFormat.SetLineSpacing*">SetLineSpacing Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextFormat_SetLineSpacing_" data-uid="C1.Util.DX.DirectWrite.TextFormat.SetLineSpacing*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextFormat_SetLineSpacing_C1_Util_DX_DirectWrite_LineSpacingMethod_System_Single_System_Single_" data-uid="C1.Util.DX.DirectWrite.TextFormat.SetLineSpacing(C1.Util.DX.DirectWrite.LineSpacingMethod,System.Single,System.Single)">SetLineSpacing(LineSpacingMethod, float, float)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteTextFormat::SetLineSpacing([In] DWRITE_LINE_SPACING_METHOD lineSpacingMethod,[In] float lineSpacing,[In] float baseline)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetLineSpacing(lineSpacingMethod As LineSpacingMethod, lineSpacing As Single, baseline As Single)</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="C1.Util.DX.DirectWrite.LineSpacingMethod.html">LineSpacingMethod</a></td>
      <td><span class="parametername">lineSpacingMethod</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">lineSpacing</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">baseline</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
