# C1.WinUI.Viewer.C1WinUICanvasGraphics.InternalDrawRectangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_Viewer_C1WinUICanvasGraphics_InternalDrawRectangle_" data-uid="C1.WinUI.Viewer.C1WinUICanvasGraphics.InternalDrawRectangle*">InternalDrawRectangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_Viewer_C1WinUICanvasGraphics_InternalDrawRectangle_" data-uid="C1.WinUI.Viewer.C1WinUICanvasGraphics.InternalDrawRectangle*"></a>
<h4 id="C1_WinUI_Viewer_C1WinUICanvasGraphics_InternalDrawRectangle_C1_Interop_Rect_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_" data-uid="C1.WinUI.Viewer.C1WinUICanvasGraphics.InternalDrawRectangle(C1.Interop.Rect,System.Drawing.Color,System.Double,C1.Document.Util.PenStyle)">InternalDrawRectangle(Rect, Color, double, PenStyle)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void InternalDrawRectangle(Rect bounds, Color color, double lineWidth, PenStyle penStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub InternalDrawRectangle(bounds As Rect, color As Color, lineWidth As Double, penStyle As PenStyle)</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><span class="xref">Rect</span></td>
      <td><span class="parametername">bounds</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">lineWidth</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">PenStyle</span></td>
      <td><span class="parametername">penStyle</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
