# C1.C1Preview.UserCellGroup.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*">UserCellGroup Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*"></a>
<h4 id="C1_C1Preview_UserCellGroup__ctor_System_Drawing_Rectangle_" data-uid="C1.C1Preview.UserCellGroup.#ctor(System.Drawing.Rectangle)">UserCellGroup(Rectangle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.UserCellGroup.html">UserCellGroup</a> class,
includes a range of cells identified by a rectangular area, in the group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UserCellGroup(Rectangle range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(range As Rectangle)</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.rectangle">Rectangle</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>Identifies a rectangluar range of cells as follows:
<ul><li>range.X is the column index of the top left cell;</li><li>range.Y is the row index of the top left cell;</li><li>range.Width is the number of columns;</li><li>range.Height is the number of rows.</li></ul>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*"></a>
<h4 id="C1_C1Preview_UserCellGroup__ctor_System_Drawing_Point_" data-uid="C1.C1Preview.UserCellGroup.#ctor(System.Drawing.Point)">UserCellGroup(Point)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.UserCellGroup.html">UserCellGroup</a> class,
includes a single cell identified by its coordinates, in the group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UserCellGroup(Point cell)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cell 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.drawing.point">Point</a></td>
      <td><span class="parametername">cell</span></td>
      <td><p>Identifies a cell as follows:
<ul><li>cell.X is the column index of the cell;</li><li>cell.Y is the row index of the cell.</li></ul>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*"></a>
<h4 id="C1_C1Preview_UserCellGroup__ctor_System_Drawing_Rectangle___" data-uid="C1.C1Preview.UserCellGroup.#ctor(System.Drawing.Rectangle[])">UserCellGroup(params Rectangle[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.UserCellGroup.html">UserCellGroup</a> class,
includes a range of cells identified by a list of rectangular areas, in the group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UserCellGroup(params Rectangle[] ranges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ParamArray ranges As Rectangle())</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.rectangle">Rectangle</a>[]</td>
      <td><span class="parametername">ranges</span></td>
      <td><p>The list of rectangular areas to include in the group,
each area is identified by a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> structure as follows:
<ul><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.x">X</a> is the column index of the top left cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.y">Y</a> is the row index of the top left cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.width">Width</a> is the number of columns;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.x">X</a> is the number of rows.</li></ul>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*"></a>
<h4 id="C1_C1Preview_UserCellGroup__ctor_System_Drawing_Point___" data-uid="C1.C1Preview.UserCellGroup.#ctor(System.Drawing.Point[])">UserCellGroup(params Point[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.UserCellGroup.html">UserCellGroup</a> class,
includes a range of cells identified by a list of cell coordinates, in the group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UserCellGroup(params Point[] cells)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ParamArray cells 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.drawing.point">Point</a>[]</td>
      <td><span class="parametername">cells</span></td>
      <td><p>The list of cell coordinates to include in the group,
each cell is identified by a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> structure as follows:
<ul><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point.x">X</a> is the column index of the cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point.y">Y</a> is the row index of the cell.</li></ul>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_UserCellGroup__ctor_" data-uid="C1.C1Preview.UserCellGroup.#ctor*"></a>
<h4 id="C1_C1Preview_UserCellGroup__ctor_System_Object___" data-uid="C1.C1Preview.UserCellGroup.#ctor(System.Object[])">UserCellGroup(params object[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.UserCellGroup.html">UserCellGroup</a> class,
includes a range of cells identified by a list of rectangular areas or individual cell coordnates, in the group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UserCellGroup(params object[] areas)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ParamArray areas As Object())</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.object">object</a>[]</td>
      <td><span class="parametername">areas</span></td>
      <td><p>
The list of rectangular areas or individual cell coordnates to include in the group,
each item in the list may be either a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> or a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> structure.
</p>
If the item is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>, it identifies an area to include as follows:
<ul><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.x">X</a> is the column index of the top left cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.y">Y</a> is the row index of the top left cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.width">Width</a> is the number of columns;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle.x">X</a> is the number of rows.</li></ul>
If the item is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a>, it identifies a cell to include as follows:
<ul><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point.x">X</a> is the column index of the cell;</li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point.y">Y</a> is the row index of the cell.</li></ul>
</td>
    </tr>
  </tbody>
</table>
</div>
