# GrapeCity.Documents.Word.PageSize

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_PageSize" data-uid="GrapeCity.Documents.Word.PageSize" class="text-break">PageSize Class
</h1>
  <div class="markdown level0 summary"><p>Represents page size and orientation 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"><span class="xref">PageSize</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_PageSize_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageSize</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageSize</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_PageSize_Code" data-uid="GrapeCity.Documents.Word.PageSize.Code">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.Code.html#GrapeCity_Documents_Word_PageSize_Code">Code</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an optional value that can be used to store an identifier for the current paper size.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSize_Height" data-uid="GrapeCity.Documents.Word.PageSize.Height">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.Height.html#GrapeCity_Documents_Word_PageSize_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page height in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSize_Orientation" data-uid="GrapeCity.Documents.Word.PageSize.Orientation">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.Orientation.html#GrapeCity_Documents_Word_PageSize_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of a page.</p>
<p>
Changing Orientation swaps Width and Height.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSize_PaperSize" data-uid="GrapeCity.Documents.Word.PageSize.PaperSize">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.PaperSize.html#GrapeCity_Documents_Word_PageSize_PaperSize">PaperSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the paper size.</p>
<p>
Setting this property updates <a class="xref" href="GrapeCity.Documents.Word.PageSize.Width.html#GrapeCity_Documents_Word_PageSize_Width">Width</a> and <a class="xref" href="GrapeCity.Documents.Word.PageSize.Height.html#GrapeCity_Documents_Word_PageSize_Height">Height</a>,
unless the value is <a class="xref" href="GrapeCity.Documents.Word.PaperSize.html#GrapeCity_Documents_Word_PaperSize_PaperCustom">PaperCustom</a>.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageSize_Width" data-uid="GrapeCity.Documents.Word.PageSize.Width">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.Width.html#GrapeCity_Documents_Word_PageSize_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page width in points.</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_PageSize_ClearFormatting" data-uid="GrapeCity.Documents.Word.PageSize.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.PageSize.ClearFormatting.html#GrapeCity_Documents_Word_PageSize_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets page size to default values.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
