# GrapeCity.Documents.Word.PageSetup

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_PageSetup" data-uid="GrapeCity.Documents.Word.PageSetup" class="text-break">PageSetup Class
</h1>
  <div class="markdown level0 summary"><p>Represents a page setup.
This object exposes all page setup attributes (page margin, paper size, and so on) as properties.</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"><span class="xref">PageSetup</span></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_PageSetup_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageSetup</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageSetup</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_PageSetup_Bidi" data-uid="GrapeCity.Documents.Word.PageSetup.Bidi">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.Bidi.html#GrapeCity_Documents_Word_PageSetup_Bidi">Bidi</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a section is presented using a right-to-left page direction.
This property only affects section-level properties, and does not affect the layout of text within the contents of the section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_Borders" data-uid="GrapeCity.Documents.Word.PageSetup.Borders">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.Borders.html#GrapeCity_Documents_Word_PageSetup_Borders">Borders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control page borders in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_ClientHeight" data-uid="GrapeCity.Documents.Word.PageSetup.ClientHeight">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.ClientHeight.html#GrapeCity_Documents_Word_PageSetup_ClientHeight">ClientHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the client area height (where content can be placed).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_ClientWidth" data-uid="GrapeCity.Documents.Word.PageSetup.ClientWidth">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.ClientWidth.html#GrapeCity_Documents_Word_PageSetup_ClientWidth">ClientWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the client area width (where content can be placed).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_DifferentFirstPageHeaderFooter" data-uid="GrapeCity.Documents.Word.PageSetup.DifferentFirstPageHeaderFooter">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.DifferentFirstPageHeaderFooter.html#GrapeCity_Documents_Word_PageSetup_DifferentFirstPageHeaderFooter">DifferentFirstPageHeaderFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a section has a different header and footer for its first page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_EndnoteOptions" data-uid="GrapeCity.Documents.Word.PageSetup.EndnoteOptions">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.EndnoteOptions.html#GrapeCity_Documents_Word_PageSetup_EndnoteOptions">EndnoteOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control numbering and positioning of endnotes in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_FootnoteOptions" data-uid="GrapeCity.Documents.Word.PageSetup.FootnoteOptions">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.FootnoteOptions.html#GrapeCity_Documents_Word_PageSetup_FootnoteOptions">FootnoteOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control numbering and positioning of footnotes in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_Grid" data-uid="GrapeCity.Documents.Word.PageSetup.Grid">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.Grid.html#GrapeCity_Documents_Word_PageSetup_Grid">Grid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control page grid for all pages in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_LineNumbering" data-uid="GrapeCity.Documents.Word.PageSetup.LineNumbering">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.LineNumbering.html#GrapeCity_Documents_Word_PageSetup_LineNumbering">LineNumbering</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control line numbering in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_Margin" data-uid="GrapeCity.Documents.Word.PageSetup.Margin">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.Margin.html#GrapeCity_Documents_Word_PageSetup_Margin">Margin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control page margins for all pages in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_MultiPagePrinting" data-uid="GrapeCity.Documents.Word.PageSetup.MultiPagePrinting">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.MultiPagePrinting.html#GrapeCity_Documents_Word_PageSetup_MultiPagePrinting">MultiPagePrinting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control how a multiple page document is printed out.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_OddAndEvenPagesHeaderFooter" data-uid="GrapeCity.Documents.Word.PageSetup.OddAndEvenPagesHeaderFooter">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.OddAndEvenPagesHeaderFooter.html#GrapeCity_Documents_Word_PageSetup_OddAndEvenPagesHeaderFooter">OddAndEvenPagesHeaderFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the document has
different headers and footers for odd-numbered and even-numbered pages.</p>
<p>
Note that changing this property affects all sections in the document.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_PageNumbering" data-uid="GrapeCity.Documents.Word.PageSetup.PageNumbering">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.PageNumbering.html#GrapeCity_Documents_Word_PageSetup_PageNumbering">PageNumbering</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control page numbering in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_PaperSource" data-uid="GrapeCity.Documents.Word.PageSetup.PaperSource">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.PaperSource.html#GrapeCity_Documents_Word_PageSetup_PaperSource">PaperSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control paper tray to use for a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_SectionStart" data-uid="GrapeCity.Documents.Word.PageSetup.SectionStart">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.SectionStart.html#GrapeCity_Documents_Word_PageSetup_SectionStart">SectionStart</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of section break for a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_Size" data-uid="GrapeCity.Documents.Word.PageSetup.Size">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.Size.html#GrapeCity_Documents_Word_PageSetup_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets options that control page size for all pages in a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_SuppressEndnotes" data-uid="GrapeCity.Documents.Word.PageSetup.SuppressEndnotes">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.SuppressEndnotes.html#GrapeCity_Documents_Word_PageSetup_SuppressEndnotes">SuppressEndnotes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether endnotes are printed at the end
of the next section that doesn't suppress endnotes.
Suppressed endnotes are printed before the endnotes in that section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_TextColumns" data-uid="GrapeCity.Documents.Word.PageSetup.TextColumns">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.TextColumns.html#GrapeCity_Documents_Word_PageSetup_TextColumns">TextColumns</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a collection that represents the set of text columns.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_TextFlowDirection" data-uid="GrapeCity.Documents.Word.PageSetup.TextFlowDirection">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.TextFlowDirection.html#GrapeCity_Documents_Word_PageSetup_TextFlowDirection">TextFlowDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the reading order and alignment for a section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSetup_VerticalAlignment" data-uid="GrapeCity.Documents.Word.PageSetup.VerticalAlignment">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.VerticalAlignment.html#GrapeCity_Documents_Word_PageSetup_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical alignment of text on each page in a section.</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_PageSetup_ClearFormatting" data-uid="GrapeCity.Documents.Word.PageSetup.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.PageSetup.ClearFormatting.html#GrapeCity_Documents_Word_PageSetup_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets page setup to default values.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
