# GrapeCity.Documents.Word.PageBorderCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_PageBorderCollection" data-uid="GrapeCity.Documents.Word.PageBorderCollection" class="text-break">PageBorderCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the page borders for all pages in a section.</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"><a class="xref" href="GrapeCity.Documents.Word.BorderCollection.html">BorderCollection</a></div>
    <div class="level3"><span class="xref">PageBorderCollection</span></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_PageBorderCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageBorderCollection : BorderCollection, IEnumerable&lt;Border&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageBorderCollection
    Inherits BorderCollection
    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_PageBorderCollection_AlwaysInFront" data-uid="GrapeCity.Documents.Word.PageBorderCollection.AlwaysInFront">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.AlwaysInFront.html#GrapeCity_Documents_Word_PageBorderCollection_AlwaysInFront">AlwaysInFront</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether page borders are displayed in front of the document text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageBorderCollection_AppliesTo" data-uid="GrapeCity.Documents.Word.PageBorderCollection.AppliesTo">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.AppliesTo.html#GrapeCity_Documents_Word_PageBorderCollection_AppliesTo">AppliesTo</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies which pages the page border is printed on.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageBorderCollection_OffsetFrom" data-uid="GrapeCity.Documents.Word.PageBorderCollection.OffsetFrom">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.OffsetFrom.html#GrapeCity_Documents_Word_PageBorderCollection_OffsetFrom">OffsetFrom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a specified page border is measured from the edge of the page or from the text it surrounds.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageBorderCollection_SurroundsFooter" data-uid="GrapeCity.Documents.Word.PageBorderCollection.SurroundsFooter">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.SurroundsFooter.html#GrapeCity_Documents_Word_PageBorderCollection_SurroundsFooter">SurroundsFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a page border encompasses the document footer.</p>
<p>
This property applies to all document sections and has effect only for sections where
<a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.OffsetFrom.html#GrapeCity_Documents_Word_PageBorderCollection_OffsetFrom">OffsetFrom</a> property is equal to <a class="xref" href="GrapeCity.Documents.Word.PageBorderOffsetFrom.html#GrapeCity_Documents_Word_PageBorderOffsetFrom_Text">Text</a>.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageBorderCollection_SurroundsHeader" data-uid="GrapeCity.Documents.Word.PageBorderCollection.SurroundsHeader">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.SurroundsHeader.html#GrapeCity_Documents_Word_PageBorderCollection_SurroundsHeader">SurroundsHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a page border encompasses the document header.</p>
<p>
This property applies to all document sections and has effect only for sections where
<a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.OffsetFrom.html#GrapeCity_Documents_Word_PageBorderCollection_OffsetFrom">OffsetFrom</a> property is equal to <a class="xref" href="GrapeCity.Documents.Word.PageBorderOffsetFrom.html#GrapeCity_Documents_Word_PageBorderOffsetFrom_Text">Text</a>.
</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_PageBorderCollection_ClearFormatting" data-uid="GrapeCity.Documents.Word.PageBorderCollection.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.PageBorderCollection.ClearFormatting.html#GrapeCity_Documents_Word_PageBorderCollection_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all borders of an object to default.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
