# C1.Util.Win.Win32.FillRect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Win_Win32_FillRect_" data-uid="C1.Util.Win.Win32.FillRect*">FillRect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Win_Win32_FillRect_" data-uid="C1.Util.Win.Win32.FillRect*"></a>
<h4 id="C1_Util_Win_Win32_FillRect_System_IntPtr_C1_Util_Win_Win32_RECT__System_IntPtr_" data-uid="C1.Util.Win.Win32.FillRect(System.IntPtr,C1.Util.Win.Win32.RECT@,System.IntPtr)">FillRect(nint, ref RECT, nint)</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">public static extern int FillRect(nint hDC, ref Win32.RECT rc, nint hbr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FillRect(hDC As IntPtr, ByRef rc As Win32.RECT, hbr As IntPtr) As Integer</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.intptr">nint</a></td>
      <td><span class="parametername">hDC</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.RECT.html">RECT</a></td>
      <td><span class="parametername">rc</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hbr</span></td>
      <td></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.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Win_Win32_FillRect_" data-uid="C1.Util.Win.Win32.FillRect*"></a>
<h4 id="C1_Util_Win_Win32_FillRect_System_IntPtr_System_Drawing_Rectangle_System_IntPtr_" data-uid="C1.Util.Win.Win32.FillRect(System.IntPtr,System.Drawing.Rectangle,System.IntPtr)">FillRect(nint, Rectangle, nint)</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">public static void FillRect(nint hdc, Rectangle bounds, nint hBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub FillRect(hdc As IntPtr, bounds As Rectangle, hBrush As IntPtr)</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.intptr">nint</a></td>
      <td><span class="parametername">hdc</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">hBrush</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
