# C1.C1Excel.XLCellRange.ToA1

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLCellRange_ToA1_" data-uid="C1.C1Excel.XLCellRange.ToA1*">ToA1 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLCellRange_ToA1_" data-uid="C1.C1Excel.XLCellRange.ToA1*"></a>
<h4 id="C1_C1Excel_XLCellRange_ToA1_System_Int32_System_Int32_C1_C1Excel_XLReferenceType_C1_C1Excel_XLReferenceType_" data-uid="C1.C1Excel.XLCellRange.ToA1(System.Int32,System.Int32,C1.C1Excel.XLReferenceType,C1.C1Excel.XLReferenceType)">ToA1(int, int, XLReferenceType, XLReferenceType)</h4>
<div class="markdown level1 summary"><p>Gets string with row and column reference in A1 mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string ToA1(int row, int col, XLReferenceType rowRef = XLReferenceType.Relative, XLReferenceType colRef = XLReferenceType.Relative)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ToA1(row As Integer, col As Integer, Optional rowRef As XLReferenceType = XLReferenceType.Relative, Optional colRef As XLReferenceType = XLReferenceType.Relative) 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>The row in the range equal one cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>The column in the range equal one cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Excel.XLReferenceType.html">XLReferenceType</a></td>
      <td><span class="parametername">rowRef</span></td>
      <td><p>The reference type of the row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Excel.XLReferenceType.html">XLReferenceType</a></td>
      <td><span class="parametername">colRef</span></td>
      <td><p>The reference type of the column.</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><p>The string with row and column reference in A1 mode.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
