# GrapeCity.Documents.Word.BorderCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_BorderCollection" data-uid="GrapeCity.Documents.Word.BorderCollection" class="text-break">BorderCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Documents.Word.Border.html">Border</a>s for the four sides of an object.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a></div>
    <div class="level2"><span class="xref">BorderCollection</span></div>
      <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.html">PageBorderCollection</a></div>
      <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.ParagraphBorderCollection.html">ParagraphBorderCollection</a></div>
      <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.TableBorderCollection.html">TableBorderCollection</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Border.html">Border</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_BorderCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BorderCollection : FormattingBag, IEnumerable&lt;Border&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BorderCollection
    Inherits FormattingBag
    Implements IEnumerable(Of Border), IEnumerable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_BaseKey" data-uid="GrapeCity.Documents.Word.BorderCollection.BaseKey">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.BaseKey.html#GrapeCity_Documents_Word_BorderCollection_BaseKey">BaseKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the base (this class) key for formatting properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_Bottom" data-uid="GrapeCity.Documents.Word.BorderCollection.Bottom">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.Bottom.html#GrapeCity_Documents_Word_BorderCollection_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bootom border.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_Left" data-uid="GrapeCity.Documents.Word.BorderCollection.Left">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.Left.html#GrapeCity_Documents_Word_BorderCollection_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the left border.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_Right" data-uid="GrapeCity.Documents.Word.BorderCollection.Right">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.Right.html#GrapeCity_Documents_Word_BorderCollection_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the right border.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_Top" data-uid="GrapeCity.Documents.Word.BorderCollection.Top">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.Top.html#GrapeCity_Documents_Word_BorderCollection_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the top border.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_ClearFormatting" data-uid="GrapeCity.Documents.Word.BorderCollection.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.ClearFormatting.html#GrapeCity_Documents_Word_BorderCollection_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all borders of an object to default.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BorderCollection_GetEnumerator" data-uid="GrapeCity.Documents.Word.BorderCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.BorderCollection.GetEnumerator.html#GrapeCity_Documents_Word_BorderCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an enumerator that iterates through the borders.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
