# C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Command_Docking_Drawing_BoxRenderer_DrawThemedBox_" data-uid="C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox*">DrawThemedBox Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Command_Docking_Drawing_BoxRenderer_DrawThemedBox_" data-uid="C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox*"></a>
<h4 id="C1_Win_Command_Docking_Drawing_BoxRenderer_DrawThemedBox_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Brush_System_Drawing_Color_System_Int32_System_Boolean_" data-uid="C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Brush,System.Drawing.Color,System.Int32,System.Boolean)">DrawThemedBox(Graphics, Rectangle, Brush, Color, int, bool)</h4>
<div class="markdown level1 summary"><p>Draws the rectangle with parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawThemedBox(Graphics g, Rectangle r, Brush b, Color borderColor, int corners, bool isConvex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawThemedBox(g As Graphics, r As Rectangle, b As Brush, borderColor As Color, corners As Integer, isConvex As Boolean)</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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> object that encapsulates a GDI+ drawing surface.</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">r</span></td>
      <td><p>The rectangle area to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">b</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a> object to fill the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor</span></td>
      <td><p>The color of the border of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">corners</span></td>
      <td><p>Radius of all rectangle corners, in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isConvex</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Command_Docking_Drawing_BoxRenderer_DrawThemedBox_" data-uid="C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox*"></a>
<h4 id="C1_Win_Command_Docking_Drawing_BoxRenderer_DrawThemedBox_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Brush_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Int32_System_Windows_Forms_TabAlignment_System_Boolean_System_Boolean_" data-uid="C1.Win.Command.Docking.Drawing.BoxRenderer.DrawThemedBox(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Brush,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Int32,System.Windows.Forms.TabAlignment,System.Boolean,System.Boolean)">DrawThemedBox(Graphics, Rectangle, Brush, Color, Color, Color, int, TabAlignment, bool, bool)</h4>
<div class="markdown level1 summary"><p>Draws the rectangle with parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawThemedBox(Graphics g, Rectangle r, Brush b, Color borderColor, Color borderColor2, Color borderColor3, int corners, TabAlignment orientation, bool skipBottomCorners, bool isConvex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawThemedBox(g As Graphics, r As Rectangle, b As Brush, borderColor As Color, borderColor2 As Color, borderColor3 As Color, corners As Integer, orientation As TabAlignment, skipBottomCorners As Boolean, isConvex As Boolean)</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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> object that encapsulates a GDI+ drawing surface.</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">r</span></td>
      <td><p>The rectangle area to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">b</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a> object to fill the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> structure that represents the border starting color for the gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor2</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> structure that represents the border ending color for the gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">borderColor3</span></td>
      <td><p>The tab bottom line color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">corners</span></td>
      <td><p>Radius of all rectangle corners, in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.tabalignment">TabAlignment</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.tabalignment">TabAlignment</a> structure that specifies the locations of the tabs in a tab control.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">skipBottomCorners</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isConvex</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
