# C1.Win.Document.Util.C1DXTextLayout.DWFontStyleToFontStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXTextLayout_DWFontStyleToFontStyle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.DWFontStyleToFontStyle*">DWFontStyleToFontStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXTextLayout_DWFontStyleToFontStyle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.DWFontStyleToFontStyle*"></a>
<h4 id="C1_Win_Document_Util_C1DXTextLayout_DWFontStyleToFontStyle_C1_Util_DX_DirectWrite_FontStyle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.DWFontStyleToFontStyle(C1.Util.DX.DirectWrite.FontStyle)">DWFontStyleToFontStyle(FontStyle)</h4>
<div class="markdown level1 summary"><p>Converts <span class="xref">C1.Util.DX.DirectWrite.FontStyle</span> to <span class="xref">C1.Document.C1FontStyle</span> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1FontStyle DWFontStyleToFontStyle(FontStyle fontStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DWFontStyleToFontStyle(fontStyle As FontStyle) As C1FontStyle</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><span class="xref">FontStyle</span></td>
      <td><span class="parametername">fontStyle</span></td>
      <td><p>The <span class="xref">C1.Util.DX.DirectWrite.FontStyle</span> to be converted.</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><span class="xref">C1FontStyle</span></td>
      <td><p>The <span class="xref">C1.Document.C1FontStyle</span> value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
