# GrapeCity.Documents.Drawing.GcGraphics.FillPolygon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon*">FillPolygon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_System_Drawing_PointF___System_Drawing_Color_GrapeCity_Documents_Drawing_FillMode_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon(System.Drawing.PointF[],System.Drawing.Color,GrapeCity.Documents.Drawing.FillMode)">FillPolygon(PointF[], Color, FillMode)</h4>
<div class="markdown level1 summary"><p>Fills a polygon specified by an array of points, using a specified color and fill mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void FillPolygon(PointF[] points, Color color, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(points As PointF(), color As Color, Optional fillMode As FillMode = FillMode.Alternate)</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.pointf">PointF</a>[]</td>
      <td><span class="parametername">points</span></td>
      <td><p>An array of points specifying the polygon.</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">color</span></td>
      <td><p>The fill color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The fill mode (alternate by default).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_System_Drawing_PointF___GrapeCity_Documents_Drawing_Brush_GrapeCity_Documents_Drawing_FillMode_System_Nullable_System_Drawing_RectangleF__System_Nullable_System_Numerics_Matrix3x2__" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon(System.Drawing.PointF[],GrapeCity.Documents.Drawing.Brush,GrapeCity.Documents.Drawing.FillMode,System.Nullable{System.Drawing.RectangleF},System.Nullable{System.Numerics.Matrix3x2})">FillPolygon(PointF[], Brush, FillMode, RectangleF?, Matrix3x2?)</h4>
<div class="markdown level1 summary"><p>Fills a polygon specified by an array of points, using a specified brush and fill mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void FillPolygon(PointF[] points, Brush brush, FillMode fillMode = FillMode.Alternate, RectangleF? brushBounds = null, Matrix3x2? brushTransform = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(points As PointF(), brush As Brush, Optional fillMode As FillMode = FillMode.Alternate, Optional brushBounds As RectangleF? = Nothing, Optional brushTransform As Matrix3x2? = Nothing)</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.pointf">PointF</a>[]</td>
      <td><span class="parametername">points</span></td>
      <td><p>An array of points specifying the polygon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.Brush.html">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The fill brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The fill mode (alternate by default).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>?</td>
      <td><span class="parametername">brushBounds</span></td>
      <td><p>The optional bounds for a gradient brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.matrix3x2">Matrix3x2</a>?</td>
      <td><span class="parametername">brushTransform</span></td>
      <td><p>The transformation applied to the brush.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_GrapeCity_Documents_Common_Quadrilateral_System_Drawing_Color_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon(GrapeCity.Documents.Common.Quadrilateral,System.Drawing.Color)">FillPolygon(Quadrilateral, Color)</h4>
<div class="markdown level1 summary"><p>Fills a polygon specified by an array of points, using a specified color and fill mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void FillPolygon(Quadrilateral quadrilateral, Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(quadrilateral As Quadrilateral, color As Color)</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="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a></td>
      <td><span class="parametername">quadrilateral</span></td>
      <td><p>A quadrilateral specifying the polygon.</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">color</span></td>
      <td><p>The fill color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_FillPolygon_GrapeCity_Documents_Common_Quadrilateral_GrapeCity_Documents_Drawing_Brush_System_Nullable_System_Drawing_RectangleF__System_Nullable_System_Numerics_Matrix3x2__" data-uid="GrapeCity.Documents.Drawing.GcGraphics.FillPolygon(GrapeCity.Documents.Common.Quadrilateral,GrapeCity.Documents.Drawing.Brush,System.Nullable{System.Drawing.RectangleF},System.Nullable{System.Numerics.Matrix3x2})">FillPolygon(Quadrilateral, Brush, RectangleF?, Matrix3x2?)</h4>
<div class="markdown level1 summary"><p>Fills a polygon specified by an array of points, using a specified brush and fill mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void FillPolygon(Quadrilateral quadrilateral, Brush brush, RectangleF? brushBounds = null, Matrix3x2? brushTransform = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(quadrilateral As Quadrilateral, brush As Brush, Optional brushBounds As RectangleF? = Nothing, Optional brushTransform As Matrix3x2? = Nothing)</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="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a></td>
      <td><span class="parametername">quadrilateral</span></td>
      <td><p>A quadrilateral specifying the polygon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.Brush.html">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The fill brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>?</td>
      <td><span class="parametername">brushBounds</span></td>
      <td><p>The optional bounds for a gradient brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.matrix3x2">Matrix3x2</a>?</td>
      <td><span class="parametername">brushTransform</span></td>
      <td><p>The transformation applied to the brush.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
