# GrapeCity.ActiveReports.Drawing.ITextRenderingService.DrawStringAsPath

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Drawing_ITextRenderingService_DrawStringAsPath_" data-uid="GrapeCity.ActiveReports.Drawing.ITextRenderingService.DrawStringAsPath*">DrawStringAsPath Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Drawing_ITextRenderingService_DrawStringAsPath_" data-uid="GrapeCity.ActiveReports.Drawing.ITextRenderingService.DrawStringAsPath*"></a>
<h4 id="GrapeCity_ActiveReports_Drawing_ITextRenderingService_DrawStringAsPath_GrapeCity_ActiveReports_Drawing_FontInfo_System_String_GrapeCity_ActiveReports_Drawing_StringFormatEx_System_Single_" data-uid="GrapeCity.ActiveReports.Drawing.ITextRenderingService.DrawStringAsPath(GrapeCity.ActiveReports.Drawing.FontInfo,System.String,GrapeCity.ActiveReports.Drawing.StringFormatEx,System.Single)">DrawStringAsPath(FontInfo, string, StringFormatEx, float)</h4>
<div class="markdown level1 summary"><p>Draw text layout as path based on currently selected font, device capabilities, string format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">PathEx DrawStringAsPath(FontInfo fontInfo, string text, StringFormatEx format, float dpi)</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="GrapeCity.ActiveReports.Drawing.FontInfo.html">FontInfo</a></td>
      <td><span class="parametername">fontInfo</span></td>
      <td><p>Selected font info.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>Text content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.StringFormatEx.html">StringFormatEx</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>String format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">dpi</span></td>
      <td><p>Resolution dots per inch, default value 96.</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="GrapeCity.ActiveReports.Drawing.PathEx.html">PathEx</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
