# GrapeCity.Documents.Excel.PageSettings

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_PageSettings" data-uid="GrapeCity.Documents.Excel.PageSettings" class="text-break">PageSettings Class
</h1>
  <div class="markdown level0 summary"><p>Represent the settings of the page.</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">PageSettings</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_PageSettings_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageSettings</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageSettings</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings__ctor" data-uid="GrapeCity.Documents.Excel.PageSettings.#ctor">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.-ctor.html#GrapeCity_Documents_Excel_PageSettings__ctor">PageSettings()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <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_Excel_PageSettings_AlignMarginsHeaderFooter" data-uid="GrapeCity.Documents.Excel.PageSettings.AlignMarginsHeaderFooter">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.AlignMarginsHeaderFooter.html#GrapeCity_Documents_Excel_PageSettings_AlignMarginsHeaderFooter">AlignMarginsHeaderFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True to align the header and the footer with the margins set in the page setup options.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_BlackAndWhite" data-uid="GrapeCity.Documents.Excel.PageSettings.BlackAndWhite">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.BlackAndWhite.html#GrapeCity_Documents_Excel_PageSettings_BlackAndWhite">BlackAndWhite</a>
        </td>
        <td class="markdown level1 summary"><p>True if elements of the document will be printed in black and white.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_BottomMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.BottomMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.BottomMargin.html#GrapeCity_Documents_Excel_PageSettings_BottomMargin">BottomMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the bottom margin, in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterFooter" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterFooter">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterFooter.html#GrapeCity_Documents_Excel_PageSettings_CenterFooter">CenterFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the center footer of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterFooterPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterFooterPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterFooterPicture.html#GrapeCity_Documents_Excel_PageSettings_CenterFooterPicture">CenterFooterPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the center section of the footer. Used to set attributes about the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterHeader" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterHeader">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterHeader.html#GrapeCity_Documents_Excel_PageSettings_CenterHeader">CenterHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the center header of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterHeaderPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterHeaderPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterHeaderPicture.html#GrapeCity_Documents_Excel_PageSettings_CenterHeaderPicture">CenterHeaderPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the center section of the header. Used to set attributes about the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterHorizontally" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterHorizontally">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterHorizontally.html#GrapeCity_Documents_Excel_PageSettings_CenterHorizontally">CenterHorizontally</a>
        </td>
        <td class="markdown level1 summary"><p>True if the sheet is centered horizontally on the page when it's printed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_CenterVertically" data-uid="GrapeCity.Documents.Excel.PageSettings.CenterVertically">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.CenterVertically.html#GrapeCity_Documents_Excel_PageSettings_CenterVertically">CenterVertically</a>
        </td>
        <td class="markdown level1 summary"><p>True if the sheet is centered vertically on the page when it's printed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_Draft" data-uid="GrapeCity.Documents.Excel.PageSettings.Draft">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.Draft.html#GrapeCity_Documents_Excel_PageSettings_Draft">Draft</a>
        </td>
        <td class="markdown level1 summary"><p>True if the sheet will be printed without graphics.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_FooterMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.FooterMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.FooterMargin.html#GrapeCity_Documents_Excel_PageSettings_FooterMargin">FooterMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the footer margin, in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_HeaderMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.HeaderMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.HeaderMargin.html#GrapeCity_Documents_Excel_PageSettings_HeaderMargin">HeaderMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the header margin, in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_LeftFooter" data-uid="GrapeCity.Documents.Excel.PageSettings.LeftFooter">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.LeftFooter.html#GrapeCity_Documents_Excel_PageSettings_LeftFooter">LeftFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the left footer of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_LeftFooterPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.LeftFooterPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.LeftFooterPicture.html#GrapeCity_Documents_Excel_PageSettings_LeftFooterPicture">LeftFooterPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the left section of the footer. Used to set attributes about the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_LeftHeader" data-uid="GrapeCity.Documents.Excel.PageSettings.LeftHeader">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.LeftHeader.html#GrapeCity_Documents_Excel_PageSettings_LeftHeader">LeftHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the left header of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_LeftHeaderPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.LeftHeaderPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.LeftHeaderPicture.html#GrapeCity_Documents_Excel_PageSettings_LeftHeaderPicture">LeftHeaderPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the left section of the header. Used to set attributes about the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_LeftMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.LeftMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.LeftMargin.html#GrapeCity_Documents_Excel_PageSettings_LeftMargin">LeftMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the left margin, in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_PaperHeight" data-uid="GrapeCity.Documents.Excel.PageSettings.PaperHeight">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.PaperHeight.html#GrapeCity_Documents_Excel_PageSettings_PaperHeight">PaperHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the height in points of the paper, considered page orientation.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_PaperWidth" data-uid="GrapeCity.Documents.Excel.PageSettings.PaperWidth">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.PaperWidth.html#GrapeCity_Documents_Excel_PageSettings_PaperWidth">PaperWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the width in points of the paper, considered page orientation.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_PrintErrors" data-uid="GrapeCity.Documents.Excel.PageSettings.PrintErrors">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.PrintErrors.html#GrapeCity_Documents_Excel_PageSettings_PrintErrors">PrintErrors</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets an PrintErrors contstant specifying the type of print error displayed. This feature allows users to suppress the display of error values when printing a worksheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_PrintGridlines" data-uid="GrapeCity.Documents.Excel.PageSettings.PrintGridlines">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.PrintGridlines.html#GrapeCity_Documents_Excel_PageSettings_PrintGridlines">PrintGridlines</a>
        </td>
        <td class="markdown level1 summary"><p>True if cell gridlines are printed on the page. Applies only to worksheets.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_RightFooter" data-uid="GrapeCity.Documents.Excel.PageSettings.RightFooter">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.RightFooter.html#GrapeCity_Documents_Excel_PageSettings_RightFooter">RightFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the right footer of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_RightFooterPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.RightFooterPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.RightFooterPicture.html#GrapeCity_Documents_Excel_PageSettings_RightFooterPicture">RightFooterPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the right section of the footer. Used to set attributes of the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_RightHeader" data-uid="GrapeCity.Documents.Excel.PageSettings.RightHeader">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.RightHeader.html#GrapeCity_Documents_Excel_PageSettings_RightHeader">RightHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the alignment of text on the right header of the page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_RightHeaderPicture" data-uid="GrapeCity.Documents.Excel.PageSettings.RightHeaderPicture">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.RightHeaderPicture.html#GrapeCity_Documents_Excel_PageSettings_RightHeaderPicture">RightHeaderPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.IGraphic.html">IGraphic</a> object that represents the picture for the right section of the header. Used to set attributes of the picture.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_RightMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.RightMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.RightMargin.html#GrapeCity_Documents_Excel_PageSettings_RightMargin">RightMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the right margin, in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_ScaleWithDocHeaderFooter" data-uid="GrapeCity.Documents.Excel.PageSettings.ScaleWithDocHeaderFooter">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.ScaleWithDocHeaderFooter.html#GrapeCity_Documents_Excel_PageSettings_ScaleWithDocHeaderFooter">ScaleWithDocHeaderFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets if the header and footer should be scaled with the document when the size of the document changes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_PageSettings_TopMargin" data-uid="GrapeCity.Documents.Excel.PageSettings.TopMargin">
          <a class="xref" href="GrapeCity.Documents.Excel.PageSettings.TopMargin.html#GrapeCity_Documents_Excel_PageSettings_TopMargin">TopMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the size of the top margin, in points.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
