# C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_" data-uid="C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion*">CreatePolygonRegion Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_" data-uid="C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion*"></a>
<h4 id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_System_Drawing_Point___" data-uid="C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion(System.Drawing.Point[])">CreatePolygonRegion(Point[])</h4>
<div class="markdown level1 summary"><p>Create a polygons region from the point array which defines the vertices of the polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Region CreatePolygonRegion(Point[] polygonPoints)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreatePolygonRegion(polygonPoints As Point()) As Region</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.point">Point</a>[]</td>
      <td><span class="parametername">polygonPoints</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> array that defines the vertices of the polygon.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Framework.Drawing.Gdi.Region.html">Region</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_System_Drawing_Point____remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates a new <a class="xref" href="C1.Framework.Drawing.Gdi.Region.html">Region</a> object with a polygon interior interior.
The interior is defined by the <code>polygonPoints</code> parameter.</p>
</div>


<a id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_" data-uid="C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion*"></a>
<h4 id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_System_Drawing_Point___C1_Framework_Drawing_Gdi_DeviceContexts_PolyFillMode_" data-uid="C1.Framework.Drawing.Gdi.Region.CreatePolygonRegion(System.Drawing.Point[],C1.Framework.Drawing.Gdi.DeviceContexts.PolyFillMode)">CreatePolygonRegion(Point[], PolyFillMode)</h4>
<div class="markdown level1 summary"><p>Create a polygons region from the point array which defines the vertices of the polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Region CreatePolygonRegion(Point[] polygonPoints, PolyFillMode polyFillMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreatePolygonRegion(polygonPoints As Point(), polyFillMode As PolyFillMode) As Region</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.point">Point</a>[]</td>
      <td><span class="parametername">polygonPoints</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> array that defines the vertices of the polygon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.PolyFillMode.html">PolyFillMode</a></td>
      <td><span class="parametername">polyFillMode</span></td>
      <td><p><a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.PolyFillMode.html">PolyFillMode</a> Indicates the poly fill mode is &quot;alternate&quot; or &quot;winding&quot;</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Framework.Drawing.Gdi.Region.html">Region</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Drawing_Gdi_Region_CreatePolygonRegion_System_Drawing_Point___C1_Framework_Drawing_Gdi_DeviceContexts_PolyFillMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates a new <a class="xref" href="C1.Framework.Drawing.Gdi.Region.html">Region</a> object with a polygon interior interior.
The interior is defined by the <code>polygonPoints</code> parameter.</p>
</div>
</div>
