# C1.WPF.RichTextBox.EditExtensions.SetBorders

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_EditExtensions_SetBorders_" data-uid="C1.WPF.RichTextBox.EditExtensions.SetBorders*">SetBorders Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_EditExtensions_SetBorders_" data-uid="C1.WPF.RichTextBox.EditExtensions.SetBorders*"></a>
<h4 id="C1_WPF_RichTextBox_EditExtensions_SetBorders_C1_WPF_RichTextBox_Documents_C1TextRange_C1_WPF_RichTextBox_C1BorderFlags_System_Windows_Media_Brush_System_Double_" data-uid="C1.WPF.RichTextBox.EditExtensions.SetBorders(C1.WPF.RichTextBox.Documents.C1TextRange,C1.WPF.RichTextBox.C1BorderFlags,System.Windows.Media.Brush,System.Double)">SetBorders(C1TextRange, C1BorderFlags, Brush, double)</h4>
<div class="markdown level1 summary"><p>Configures the borders of the table cells in a range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void SetBorders(this C1TextRange range, C1BorderFlags flags, Brush brush, double thickness)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub SetBorders(range As C1TextRange, flags As C1BorderFlags, brush As Brush, thickness As Double)</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.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a> inside a table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.RichTextBox.C1BorderFlags.html">C1BorderFlags</a></td>
      <td><span class="parametername">flags</span></td>
      <td><p>The borders to configure.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The brush to use for the borders.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">thickness</span></td>
      <td><p>The thickness of the borders.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
