# GrapeCity.Spreadsheet.IRange.BorderAround

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_BorderAround_" data-uid="GrapeCity.Spreadsheet.IRange.BorderAround*">BorderAround Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_BorderAround_" data-uid="GrapeCity.Spreadsheet.IRange.BorderAround*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_BorderAround_GrapeCity_Spreadsheet_BorderLineStyle_" data-uid="GrapeCity.Spreadsheet.IRange.BorderAround(GrapeCity.Spreadsheet.BorderLineStyle)">BorderAround(BorderLineStyle)</h4>
<div class="markdown level1 summary"><p>Adds a border to a range and sets the <a class="xref" href="GrapeCity.Spreadsheet.IBorder.Color.html#GrapeCity_Spreadsheet_IBorder_Color">Color</a> and <a class="xref" href="GrapeCity.Spreadsheet.IBorder.LineStyle.html#GrapeCity_Spreadsheet_IBorder_LineStyle">LineStyle</a> properties of the <a class="xref" href="GrapeCity.Spreadsheet.IBorder.html">IBorder</a> object for the new border.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void BorderAround(BorderLineStyle borderLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub BorderAround(borderLine As BorderLineStyle)</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.BorderLineStyle.html">BorderLineStyle</a></td>
      <td><span class="parametername">borderLine</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_BorderAround_" data-uid="GrapeCity.Spreadsheet.IRange.BorderAround*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_BorderAround_GrapeCity_Spreadsheet_BorderLineStyle_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.IRange.BorderAround(GrapeCity.Spreadsheet.BorderLineStyle,GrapeCity.Spreadsheet.Color)">BorderAround(BorderLineStyle, Color)</h4>
<div class="markdown level1 summary"><p>Adds a border to a range and sets the <a class="xref" href="GrapeCity.Spreadsheet.IBorder.Color.html#GrapeCity_Spreadsheet_IBorder_Color">Color</a> and <a class="xref" href="GrapeCity.Spreadsheet.IBorder.LineStyle.html#GrapeCity_Spreadsheet_IBorder_LineStyle">LineStyle</a> properties of the <a class="xref" href="GrapeCity.Spreadsheet.IBorder.html">IBorder</a> object for the new border.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void BorderAround(BorderLineStyle lineStyle, Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub BorderAround(lineStyle As BorderLineStyle, color As Color)</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.BorderLineStyle.html">BorderLineStyle</a></td>
      <td><span class="parametername">lineStyle</span></td>
      <td><p>The line style for the border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The border color.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
