# GrapeCity.Drawing.IDrawingContext.DrawRoundedRectangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_IDrawingContext_DrawRoundedRectangle_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawRoundedRectangle*">DrawRoundedRectangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_IDrawingContext_DrawRoundedRectangle_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawRoundedRectangle*"></a>
<h4 id="GrapeCity_Drawing_IDrawingContext_DrawRoundedRectangle_GrapeCity_Drawing_Brush_GrapeCity_Drawing_Pen_GrapeCity_Drawing_Rectangle_System_Double_System_Double_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawRoundedRectangle(GrapeCity.Drawing.Brush,GrapeCity.Drawing.Pen,GrapeCity.Drawing.Rectangle,System.Double,System.Double)">DrawRoundedRectangle(Brush, Pen, Rectangle, double, double)</h4>
<div class="markdown level1 summary"><p>Draws a rounded rectangle with the specified Brush and Pen.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void DrawRoundedRectangle(Brush brush, Pen pen, Rectangle rect, double radiusX, double radiusY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub DrawRoundedRectangle(brush As Brush, pen As Pen, rect As Rectangle, radiusX As Double, radiusY As Double)</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.Drawing.Brush.html">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The brush used to fill the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Drawing.Pen.html">Pen</a></td>
      <td><span class="parametername">pen</span></td>
      <td><p>The pen used to stroke the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The rectangle to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">radiusX</span></td>
      <td><p>The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to <a class="xref" href="GrapeCity.Drawing.Rect.Width.html#GrapeCity_Drawing_Rect_Width">Width</a>/2.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">radiusY</span></td>
      <td><p>The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to <a class="xref" href="GrapeCity.Drawing.Rect.Height.html#GrapeCity_Drawing_Rect_Height">Height</a>/2.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
