# C1.Win.Document.Util.C1DXTextLayout.FillRectangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXTextLayout_FillRectangle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.FillRectangle*">FillRectangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXTextLayout_FillRectangle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.FillRectangle*"></a>
<h4 id="C1_Win_Document_Util_C1DXTextLayout_FillRectangle_C1_Document_Util_C1Graphics_System_Drawing_Color_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1DXTextLayout.FillRectangle(C1.Document.Util.C1Graphics,System.Drawing.Color,C1.Interop.Rect)">FillRectangle(C1Graphics, Color, Rect)</h4>
<div class="markdown level1 summary"><p>Fill rectangle with specified color.</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 FillRectangle(C1Graphics graphics, Color color, Rect bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub FillRectangle(graphics As C1Graphics, color As Color, bounds As Rect)</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">C1Graphics</span></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>A <span class="xref">C1.Document.Util.C1Graphics</span> object implements drawing surface for <a class="xref" href="C1.Win.Document.C1Document.html">C1Document</a>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">color</span></td>
      <td><p>A color to fill.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Rect</span></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The location and size of a rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Document_Util_C1DXTextLayout_FillRectangle_" data-uid="C1.Win.Document.Util.C1DXTextLayout.FillRectangle*"></a>
<h4 id="C1_Win_Document_Util_C1DXTextLayout_FillRectangle_C1_Document_Util_C1Graphics_C1_Document_C1Brush_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1DXTextLayout.FillRectangle(C1.Document.Util.C1Graphics,C1.Document.C1Brush,C1.Interop.Rect)">FillRectangle(C1Graphics, C1Brush, Rect)</h4>
<div class="markdown level1 summary"><p>Fill rectangle with specified <span class="xref">C1.Document.C1Brush</span>.</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 FillRectangle(C1Graphics graphics, C1Brush brush, Rect bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub FillRectangle(graphics As C1Graphics, brush As C1Brush, bounds As Rect)</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">C1Graphics</span></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>A <span class="xref">C1.Document.Util.C1Graphics</span> object implements drawing surface for <a class="xref" href="C1.Win.Document.C1Document.html">C1Document</a>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1Brush</span></td>
      <td><span class="parametername">brush</span></td>
      <td><p>A <span class="xref">C1.Document.C1Brush</span> for fill.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Rect</span></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The location and size of a rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
