# C1.C1Preview.RenderFragment.FillRect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderFragment_FillRect_" data-uid="C1.C1Preview.RenderFragment.FillRect*">FillRect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderFragment_FillRect_" data-uid="C1.C1Preview.RenderFragment.FillRect*"></a>
<h4 id="C1_C1Preview_RenderFragment_FillRect_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_C1_C1Preview_Style_C1_C1Preview_Scripting_IScriptContext_" data-uid="C1.C1Preview.RenderFragment.FillRect(System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,System.Int32,C1.C1Preview.Style,C1.C1Preview.Scripting.IScriptContext)">FillRect(Graphics, int, int, int, int, Style, IScriptContext)</h4>
<div class="markdown level1 summary"><p>For internal use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void FillRect(Graphics graphics, int left, int top, int right, int bottom, Style style, IScriptContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub FillRect(graphics As Graphics, left As Integer, top As Integer, right As Integer, bottom As Integer, style As Style, context As IScriptContext)</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">graphics</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">left</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">top</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">right</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bottom</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">IScriptContext</span></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderFragment_FillRect_" data-uid="C1.C1Preview.RenderFragment.FillRect*"></a>
<h4 id="C1_C1Preview_RenderFragment_FillRect_System_Drawing_Graphics_System_Drawing_Rectangle_C1_C1Preview_Style_C1_C1Preview_Scripting_IScriptContext_" data-uid="C1.C1Preview.RenderFragment.FillRect(System.Drawing.Graphics,System.Drawing.Rectangle,C1.C1Preview.Style,C1.C1Preview.Scripting.IScriptContext)">FillRect(Graphics, Rectangle, Style, IScriptContext)</h4>
<div class="markdown level1 summary"><p>For internal use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void FillRect(Graphics graphics, Rectangle rect, Style style, IScriptContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub FillRect(graphics As Graphics, rect As Rectangle, style As Style, context As IScriptContext)</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">graphics</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">rect</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">IScriptContext</span></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
