# GrapeCity.Spreadsheet.IRange.AutoFill

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_AutoFill_" data-uid="GrapeCity.Spreadsheet.IRange.AutoFill*">AutoFill Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_AutoFill_" data-uid="GrapeCity.Spreadsheet.IRange.AutoFill*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_AutoFill_System_String_GrapeCity_Spreadsheet_AutoFillType_" data-uid="GrapeCity.Spreadsheet.IRange.AutoFill(System.String,GrapeCity.Spreadsheet.AutoFillType)">AutoFill(string, AutoFillType)</h4>
<div class="markdown level1 summary"><p>Performs an autofill on the cells in the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void AutoFill(string destination, AutoFillType type = AutoFillType.FillCopy)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub AutoFill(destination As String, Optional type As AutoFillType = AutoFillType.FillCopy)</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.string">string</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>The cells to be filled. The destination must include the source range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.AutoFillType.html">AutoFillType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Specifies the fill type.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_AutoFill_" data-uid="GrapeCity.Spreadsheet.IRange.AutoFill*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_AutoFill_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_Spreadsheet_AutoFillType_" data-uid="GrapeCity.Spreadsheet.IRange.AutoFill(System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.Spreadsheet.AutoFillType)">AutoFill(int, int, int, int, AutoFillType)</h4>
<div class="markdown level1 summary"><p>Performs an autofill on the cells in the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void AutoFill(int row, int column, int row2, int column2, AutoFillType type = AutoFillType.FillCopy)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub AutoFill(row As Integer, column As Integer, row2 As Integer, column2 As Integer, Optional type As AutoFillType = AutoFillType.FillCopy)</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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.AutoFillType.html">AutoFillType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Specifies the fill type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
