# C1.C1Pdf.C1PdfDocument.FillPolygon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.C1Pdf.C1PdfDocument.FillPolygon*">FillPolygon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.C1Pdf.C1PdfDocument.FillPolygon*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_FillPolygon_System_Drawing_Color_System_Drawing_PointF___System_Drawing_Drawing2D_FillMode_" data-uid="C1.C1Pdf.C1PdfDocument.FillPolygon(System.Drawing.Color,System.Drawing.PointF[],System.Drawing.Drawing2D.FillMode)">FillPolygon(Color, PointF[], FillMode)</h4>
<div class="markdown level1 summary"><p>Fills a polygon defined by an array of point structures using the specified 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(Color color, PointF[] points, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(color As Color, points As PointF(), 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.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color used to fill the polygon.</p>
</td>
    </tr>
    <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>Array of point structures that represent the vertices of the polygon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.fillmode">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.fillmode">FillMode</a> parameter that determines how to handle overlapping areas within the polygon.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocument_FillPolygon_System_Drawing_Color_System_Drawing_PointF___System_Drawing_Drawing2D_FillMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>All coordinates are expressed in points, measured from the upper-left corner of the page.</p>
</div>


<a id="C1_C1Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.C1Pdf.C1PdfDocument.FillPolygon*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_FillPolygon_System_Drawing_Brush_System_Drawing_PointF___System_Drawing_Drawing2D_FillMode_" data-uid="C1.C1Pdf.C1PdfDocument.FillPolygon(System.Drawing.Brush,System.Drawing.PointF[],System.Drawing.Drawing2D.FillMode)">FillPolygon(Brush, PointF[], FillMode)</h4>
<div class="markdown level1 summary"><p>Fills a polygon defined by an array of point structures using the specified 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(Brush brush, PointF[] points, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(brush As Brush, points As PointF(), 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.brush">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The object that determines the color used to fill the polygon.</p>
</td>
    </tr>
    <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>Array of point structures that represent the vertices of the polygon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.fillmode">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.fillmode">FillMode</a> parameter that determines how to handle overlapping areas within the polygon.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocument_FillPolygon_System_Drawing_Brush_System_Drawing_PointF___System_Drawing_Drawing2D_FillMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>All coordinates are expressed in points, measured from the upper-left corner of the page.</p>
</div>
</div>
