# C1.Util.XLRegion.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*">XLRegion Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*"></a>
<h4 id="C1_Util_XLRegion__ctor_C1_Util_FillMode_" data-uid="C1.Util.XLRegion.#ctor(C1.Util.FillMode)">XLRegion(FillMode)</h4>
<div class="markdown level1 summary"><p>Creating a region object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLRegion(FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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="C1.Util.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The initial fill mode.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*"></a>
<h4 id="C1_Util_XLRegion__ctor_System_Drawing_PointF___C1_Util_FillMode_" data-uid="C1.Util.XLRegion.#ctor(System.Drawing.PointF[],C1.Util.FillMode)">XLRegion(PointF[], FillMode)</h4>
<div class="markdown level1 summary"><p>Creating a region object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLRegion(PointF[] points, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(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.pointf">PointF</a>[]</td>
      <td><span class="parametername">points</span></td>
      <td><p>The point array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The initial fill mode.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*"></a>
<h4 id="C1_Util_XLRegion__ctor_System_Drawing_PointF_____C1_Util_FillMode_" data-uid="C1.Util.XLRegion.#ctor(System.Drawing.PointF[][],C1.Util.FillMode)">XLRegion(PointF[][], FillMode)</h4>
<div class="markdown level1 summary"><p>Creating a region object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public XLRegion(PointF[][] points, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(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.pointf">PointF</a>[][]</td>
      <td><span class="parametername">points</span></td>
      <td><p>The point double array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The initial fill mode.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*"></a>
<h4 id="C1_Util_XLRegion__ctor_System_Drawing_RectangleF_C1_Util_FillMode_" data-uid="C1.Util.XLRegion.#ctor(System.Drawing.RectangleF,C1.Util.FillMode)">XLRegion(RectangleF, FillMode)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.XLRegion.html">XLRegion</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLRegion(RectangleF rect, FillMode fillMode = FillMode.Alternate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rect As RectangleF, 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.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The rectangle to be added to the region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FillMode.html">FillMode</a></td>
      <td><span class="parametername">fillMode</span></td>
      <td><p>The initial fill mode.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLRegion__ctor_" data-uid="C1.Util.XLRegion.#ctor*"></a>
<h4 id="C1_Util_XLRegion__ctor_C1_Util_XLPath_System_Boolean_" data-uid="C1.Util.XLRegion.#ctor(C1.Util.XLPath,System.Boolean)">XLRegion(XLPath, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.XLRegion.html">XLRegion</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLRegion(XLPath path, bool closeFigures = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(path As XLPath, Optional closeFigures As Boolean = True)</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="C1.Util.XLPath.html">XLPath</a></td>
      <td><span class="parametername">path</span></td>
      <td><p>The path to be added to the region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">closeFigures</span></td>
      <td><p>Indicates if the current path figures should be closed into a new region.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
