# GrapeCity.Documents.Excel.IRange.GetAddress

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IRange_GetAddress_" data-uid="GrapeCity.Documents.Excel.IRange.GetAddress*">GetAddress Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IRange_GetAddress_" data-uid="GrapeCity.Documents.Excel.IRange.GetAddress*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_GetAddress_System_Boolean_System_Boolean_GrapeCity_Documents_Excel_ReferenceStyle_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.IRange.GetAddress(System.Boolean,System.Boolean,GrapeCity.Documents.Excel.ReferenceStyle,GrapeCity.Documents.Excel.IRange)">GetAddress(bool, bool, ReferenceStyle, IRange)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value that represents the range reference.
If all parameters are omitted, the return value is equal to the <a class="xref" href="GrapeCity.Documents.Excel.IRange.Address.html#GrapeCity_Documents_Excel_IRange_Address">Address</a> property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string GetAddress(bool rowAbsolute = true, bool columnAbsolute = true, ReferenceStyle referenceStyle = ReferenceStyle.A1, IRange relativeTo = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetAddress(Optional rowAbsolute As Boolean = True, Optional columnAbsolute As Boolean = True, Optional referenceStyle As ReferenceStyle = ReferenceStyle.A1, Optional relativeTo As IRange = Nothing) As String</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.boolean">bool</a></td>
      <td><span class="parametername">rowAbsolute</span></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> to return the row part of the reference as an absolute reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnAbsolute</span></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> to return the column part of the reference as an absolute reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.ReferenceStyle.html">ReferenceStyle</a></td>
      <td><span class="parametername">referenceStyle</span></td>
      <td><p>The reference style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">relativeTo</span></td>
      <td><p>If RowAbsolute and ColumnAbsolute are <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>,
and ReferenceStyle is R1C1,
defines a starting point for the relative reference.
The default reference is $A$1.</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
