# C1.Xaml.Pdf.C1PdfDocument.FillPolygon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.FillPolygon*">FillPolygon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.FillPolygon*"></a>
<h4 id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_System_Windows_Media_Color_System_Windows_Point___GrapeCity_Documents_Drawing_FillMode_" data-uid="C1.Xaml.Pdf.C1PdfDocument.FillPolygon(System.Windows.Media.Color,System.Windows.Point[],GrapeCity.Documents.Drawing.FillMode)">FillPolygon(Color, Point[], 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, Point[] points, FillMode fillMode = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(color As Color, points As Point(), Optional fillMode As FillMode = 0)</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.windows.media.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><span class="xref">Point</span>[]</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><span class="xref">FillMode</span></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p><span class="xref">GrapeCity.Documents.Drawing.FillMode</span> parameter that determines how to handle overlapping areas within the polygon.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_System_Windows_Media_Color_System_Windows_Point___GrapeCity_Documents_Drawing_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_Xaml_Pdf_C1PdfDocument_FillPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.FillPolygon*"></a>
<h4 id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_System_Windows_Media_Brush_System_Windows_Point___GrapeCity_Documents_Drawing_FillMode_" data-uid="C1.Xaml.Pdf.C1PdfDocument.FillPolygon(System.Windows.Media.Brush,System.Windows.Point[],GrapeCity.Documents.Drawing.FillMode)">FillPolygon(Brush, Point[], 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, Point[] points, FillMode fillMode = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillPolygon(brush As Brush, points As Point(), Optional fillMode As FillMode = 0)</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.windows.media.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><span class="xref">Point</span>[]</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><span class="xref">FillMode</span></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p><span class="xref">GrapeCity.Documents.Drawing.FillMode</span> parameter that determines how to handle overlapping areas within the polygon.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Xaml_Pdf_C1PdfDocument_FillPolygon_System_Windows_Media_Brush_System_Windows_Point___GrapeCity_Documents_Drawing_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>
