# C1.Win.Drawing.StringRendererBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Drawing_StringRendererBase" data-uid="C1.Win.Drawing.StringRendererBase" class="text-break">StringRendererBase Class
</h1>
  <div class="markdown level0 summary"><p>Provides base methods used to measure and render text.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">StringRendererBase</span></div>
      <div class="level2"><a class="xref" href="C1.Win.Drawing.StringRendererGDI.html">StringRendererGDI</a></div>
      <div class="level2"><a class="xref" href="C1.Win.Drawing.StringRendererGDIPlus.html">StringRendererGDIPlus</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Drawing.html">C1.Win.Drawing</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Drawing_StringRendererBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class StringRendererBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class StringRendererBase</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Drawing_StringRendererBase__ctor" data-uid="C1.Win.Drawing.StringRendererBase.#ctor">
          <a class="xref" href="C1.Win.Drawing.StringRendererBase.-ctor.html#C1_Win_Drawing_StringRendererBase__ctor">StringRendererBase()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Drawing_StringRendererBase_PrepareHdc_System_Drawing_Graphics_" data-uid="C1.Win.Drawing.StringRendererBase.PrepareHdc(System.Drawing.Graphics)">
          <a class="xref" href="C1.Win.Drawing.StringRendererBase.PrepareHdc.html#C1_Win_Drawing_StringRendererBase_PrepareHdc_System_Drawing_Graphics_">PrepareHdc(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the handle to the device context associated with <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Drawing_StringRendererBase_ReleaseHdc_System_Drawing_Graphics_System_IntPtr_" data-uid="C1.Win.Drawing.StringRendererBase.ReleaseHdc(System.Drawing.Graphics,System.IntPtr)">
          <a class="xref" href="C1.Win.Drawing.StringRendererBase.ReleaseHdc.html#C1_Win_Drawing_StringRendererBase_ReleaseHdc_System_Drawing_Graphics_System_IntPtr_">ReleaseHdc(Graphics, nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases a device context handle obtained by a previous call to the <a class="xref" href="C1.Win.Drawing.StringRendererBase.PrepareHdc.html#C1_Win_Drawing_StringRendererBase_PrepareHdc_System_Drawing_Graphics_">PrepareHdc(Graphics)</a> method of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
