# GrapeCity.Documents.Excel.RangeTemplateCellType.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor*">RangeTemplateCellType Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_GrapeCity_Documents_Excel_IWorksheet_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor(GrapeCity.Documents.Excel.IWorksheet,System.Int32,System.Int32,System.Int32,System.Int32)">RangeTemplateCellType(IWorksheet, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Use a worksheet and it's range infos to create a RangeTemplateCellType.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeTemplateCellType(IWorksheet worksheet, int row = 0, int column = 0, int rowCount = 0, int columnCount = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(worksheet As IWorksheet, Optional row As Integer = 0, Optional column As Integer = 0, Optional rowCount As Integer = 0, Optional columnCount As Integer = 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="GrapeCity.Documents.Excel.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Documents.Excel.IWorksheet.html">IWorksheet</a> object that used to be referenced. The sheet could be an individual sheet outside the workbook.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>the template scope start row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>the template scope start column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>the template scope row count.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>the template scope column count.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor(GrapeCity.Documents.Excel.IRange)">RangeTemplateCellType(IRange)</h4>
<div class="markdown level1 summary"><p>Use the range to create a RangeTemplateCellType.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeTemplateCellType(IRange range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(range As IRange)</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="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a> object that used to be referenced.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
