# C1.Framework.DrawUtil

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_DrawUtil" data-uid="C1.Framework.DrawUtil" class="text-break">DrawUtil Class
</h1>
  <div class="markdown level0 summary"><p>Provides helper methods for working with graphics objects.</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">DrawUtil</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_DrawUtil_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DrawUtil</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DrawUtil</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_Framework_DrawUtil__ctor" data-uid="C1.Framework.DrawUtil.#ctor">
          <a class="xref" href="C1.Framework.DrawUtil.-ctor.html#C1_Framework_DrawUtil__ctor">DrawUtil()</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_Framework_DrawUtil_CreateBorderPath_C1_Framework_Corners_System_Boolean_System_Drawing_Rectangle_C1_Framework_Thickness_" data-uid="C1.Framework.DrawUtil.CreateBorderPath(C1.Framework.Corners,System.Boolean,System.Drawing.Rectangle,C1.Framework.Thickness)">
          <a class="xref" href="C1.Framework.DrawUtil.CreateBorderPath.html#C1_Framework_DrawUtil_CreateBorderPath_C1_Framework_Corners_System_Boolean_System_Drawing_Rectangle_C1_Framework_Thickness_">CreateBorderPath(Corners, bool, Rectangle, Thickness)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.graphicspath">GraphicsPath</a> that covers only the borders (hollow, used to renders the borders).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DrawUtil_CreatePath_C1_Framework_Corners_System_Boolean_System_Drawing_Rectangle_" data-uid="C1.Framework.DrawUtil.CreatePath(C1.Framework.Corners,System.Boolean,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.DrawUtil.CreatePath.html#C1_Framework_DrawUtil_CreatePath_C1_Framework_Corners_System_Boolean_System_Drawing_Rectangle_">CreatePath(Corners, bool, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.graphicspath">GraphicsPath</a> for a rectangle with rounded edges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DrawUtil_CreateRoundedRect_System_Drawing_Rectangle_C1_Framework_Corners_" data-uid="C1.Framework.DrawUtil.CreateRoundedRect(System.Drawing.Rectangle,C1.Framework.Corners)">
          <a class="xref" href="C1.Framework.DrawUtil.CreateRoundedRect.html#C1_Framework_DrawUtil_CreateRoundedRect_System_Drawing_Rectangle_C1_Framework_Corners_">CreateRoundedRect(Rectangle, Corners)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.graphicspath">GraphicsPath</a> for a rectangle with rounded edges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DrawUtil_DrawHighlightSelector_System_Drawing_Rectangle_System_Drawing_Graphics_System_Drawing_Brush_System_Boolean_System_Boolean_" data-uid="C1.Framework.DrawUtil.DrawHighlightSelector(System.Drawing.Rectangle,System.Drawing.Graphics,System.Drawing.Brush,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.Framework.DrawUtil.DrawHighlightSelector.html#C1_Framework_DrawUtil_DrawHighlightSelector_System_Drawing_Rectangle_System_Drawing_Graphics_System_Drawing_Brush_System_Boolean_System_Boolean_">DrawHighlightSelector(Rectangle, Graphics, Brush, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the highlight selector for the specified borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DrawUtil_DrawParentBackground_System_Windows_Forms_Control_System_Drawing_Graphics_" data-uid="C1.Framework.DrawUtil.DrawParentBackground(System.Windows.Forms.Control,System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.DrawUtil.DrawParentBackground.html#C1_Framework_DrawUtil_DrawParentBackground_System_Windows_Forms_Control_System_Drawing_Graphics_">DrawParentBackground(Control, Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the background of the control using the container background color.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
