# GrapeCity.Spreadsheet.IWorksheet.Range

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IWorksheet_Range_" data-uid="GrapeCity.Spreadsheet.IWorksheet.Range*">Range Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IWorksheet_Range_" data-uid="GrapeCity.Spreadsheet.IWorksheet.Range*"></a>
<h4 id="GrapeCity_Spreadsheet_IWorksheet_Range_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.IWorksheet.Range(System.String,System.String)">Range(string, string)</h4>
<div class="markdown level1 summary"><p>Get an <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object that represents a cell or a range of cells.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IRange Range(string cell1, string cell2 = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Range(cell1 As String, Optional cell2 As String = Nothing) 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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cell1</span></td>
      <td><p>The name of the range. This must be an A1-style reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cell2</span></td>
      <td><p>The cell in the lower-right corner of the range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object which provide access to cell values, formulas, formatting...</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IWorksheet_Range_" data-uid="GrapeCity.Spreadsheet.IWorksheet.Range*"></a>
<h4 id="GrapeCity_Spreadsheet_IWorksheet_Range_GrapeCity_Spreadsheet_Reference___" data-uid="GrapeCity.Spreadsheet.IWorksheet.Range(GrapeCity.Spreadsheet.Reference[])">Range(params Reference[])</h4>
<div class="markdown level1 summary"><p>Get an <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object that represents ranges of reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IRange Range(params Reference[] references)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Range(ParamArray references As Reference()) 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.Spreadsheet.Reference.html">Reference</a>[]</td>
      <td><span class="parametername">references</span></td>
      <td><p>The name of the reference ranges. This must be an A1-style reference.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
