# C1.Xaml.Pdf.C1PdfDocument.DrawPolygon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.DrawPolygon*">DrawPolygon Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.DrawPolygon*"></a>
<h4 id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_System_Windows_Media_Pen_System_Windows_Point___" data-uid="C1.Xaml.Pdf.C1PdfDocument.DrawPolygon(System.Windows.Media.Pen,System.Windows.Point[])">DrawPolygon(Pen, Point[])</h4>
<div class="markdown level1 summary"><p>Draws a polygon defined by an array of point structures.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawPolygon(Pen pen, Point[] points)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawPolygon(pen As Pen, points As Point())</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.pen">Pen</a></td>
      <td><span class="parametername">pen</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.pen">Pen</a> object that determines the color, width, and style of 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>
  </tbody>
</table>
<h5 id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_System_Windows_Media_Pen_System_Windows_Point____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_DrawPolygon_" data-uid="C1.Xaml.Pdf.C1PdfDocument.DrawPolygon*"></a>
<h4 id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_GrapeCity_Documents_Drawing_Pen_System_Windows_Point___" data-uid="C1.Xaml.Pdf.C1PdfDocument.DrawPolygon(GrapeCity.Documents.Drawing.Pen,System.Windows.Point[])">DrawPolygon(Pen, Point[])</h4>
<div class="markdown level1 summary"><p>Draws a polygon defined by an array of point structures.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawPolygon(Pen pen, Point[] points)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawPolygon(pen As Pen, points As Point())</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">Pen</span></td>
      <td><span class="parametername">pen</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.pen">Pen</a> object that determines the color, width, and style of 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>
  </tbody>
</table>
<h5 id="C1_Xaml_Pdf_C1PdfDocument_DrawPolygon_GrapeCity_Documents_Drawing_Pen_System_Windows_Point____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>
