# C1.C1Excel.XLStyle.SetBorderStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLStyle_SetBorderStyle_" data-uid="C1.C1Excel.XLStyle.SetBorderStyle*">SetBorderStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLStyle_SetBorderStyle_" data-uid="C1.C1Excel.XLStyle.SetBorderStyle*"></a>
<h4 id="C1_C1Excel_XLStyle_SetBorderStyle_C1_C1Excel_XLLineStyleEnum_" data-uid="C1.C1Excel.XLStyle.SetBorderStyle(C1.C1Excel.XLLineStyleEnum)">SetBorderStyle(XLLineStyleEnum)</h4>
<div class="markdown level1 summary"><p>Sets the border style for this <a class="xref" href="C1.C1Excel.XLStyle.html">XLStyle</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetBorderStyle(XLLineStyleEnum style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetBorderStyle(style As XLLineStyleEnum)</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="C1.C1Excel.XLLineStyleEnum.html">XLLineStyleEnum</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Line style used to draw the border.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Excel_XLStyle_SetBorderStyle_C1_C1Excel_XLLineStyleEnum__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method applies the setting to all four borders.</p>
</div>
</div>
