# C1.Framework.DrawUtil.CreatePath

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_DrawUtil_CreatePath_" data-uid="C1.Framework.DrawUtil.CreatePath*">CreatePath Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_DrawUtil_CreatePath_" data-uid="C1.Framework.DrawUtil.CreatePath*"></a>
<h4 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)">CreatePath(Corners, bool, Rectangle)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GraphicsPath CreatePath(Corners corners, bool rightToLeft, Rectangle bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreatePath(corners As Corners, rightToLeft As Boolean, bounds As Rectangle) As GraphicsPath</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.Framework.Corners.html">Corners</a></td>
      <td><span class="parametername">corners</span></td>
      <td><p>the values for corners.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rightToLeft</span></td>
      <td><p>the right-to-left flag.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>the original rectangle.</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="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.graphicspath">GraphicsPath</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
