# GrapeCity.Documents.Excel.RangeTemplateCellType

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_RangeTemplateCellType" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType" class="text-break">RangeTemplateCellType Class
</h1>
  <div class="markdown level0 summary"><p>RangeTemplate provide a template from a range of referenced worksheet, it can apply to a cell.
It will render the cell same as the template and fill data differently.If the param row, col, rowCount, colCount not set , it will use the sheet's usedrange as the range scope.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Excel.BaseCellType.html">BaseCellType</a></div>
    <div class="level2"><span class="xref">RangeTemplateCellType</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_RangeTemplateCellType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RangeTemplateCellType : BaseCellType</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RangeTemplateCellType
    Inherits BaseCellType</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.#ctor(GrapeCity.Documents.Excel.IRange)">
          <a class="xref" href="GrapeCity.Documents.Excel.RangeTemplateCellType.-ctor.html#GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_GrapeCity_Documents_Excel_IRange_">RangeTemplateCellType(IRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Use the range to create a RangeTemplateCellType.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Excel.RangeTemplateCellType.-ctor.html#GrapeCity_Documents_Excel_RangeTemplateCellType__ctor_GrapeCity_Documents_Excel_IWorksheet_System_Int32_System_Int32_System_Int32_System_Int32_">RangeTemplateCellType(IWorksheet, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Use a worksheet and it's range infos to create a RangeTemplateCellType.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_RangeTemplateCellType_UpdateTemplate_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.RangeTemplateCellType.UpdateTemplate(GrapeCity.Documents.Excel.IRange)">
          <a class="xref" href="GrapeCity.Documents.Excel.RangeTemplateCellType.UpdateTemplate.html#GrapeCity_Documents_Excel_RangeTemplateCellType_UpdateTemplate_GrapeCity_Documents_Excel_IRange_">UpdateTemplate(IRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Update the range that used to be referenced.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
