# C1.C1Preview.DocumentPageLayouts

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DocumentPageLayouts" data-uid="C1.C1Preview.DocumentPageLayouts" class="text-break">DocumentPageLayouts Class
</h1>
  <div class="markdown level0 summary"><p>Represents the standard page layouts used in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>
(such as the default page layout, page layout used for first and last pages,
and so on).</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">DocumentPageLayouts</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_DocumentPageLayouts_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class DocumentPageLayouts : IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class DocumentPageLayouts
    Implements IEnumerable</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="C1_C1Preview_DocumentPageLayouts__ctor_C1_C1Preview_C1PrintDocument_" data-uid="C1.C1Preview.DocumentPageLayouts.#ctor(C1.C1Preview.C1PrintDocument)">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.-ctor.html#C1_C1Preview_DocumentPageLayouts__ctor_C1_C1Preview_C1PrintDocument_">DocumentPageLayouts(C1PrintDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DocumentPageLayouts.html">DocumentPageLayouts</a> class.</p>
</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="C1_C1Preview_DocumentPageLayouts_Default" data-uid="C1.C1Preview.DocumentPageLayouts.Default">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.Default.html#C1_C1Preview_DocumentPageLayouts_Default">Default</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the default <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> for the current document.
The effective page layout for each page is determined by merging this layout
with all other applicable layouts.
The effective layout can be accessed via the <a class="xref" href="C1.C1Preview.C1PrintDocument.CurrentPageLayout.html#C1_C1Preview_C1PrintDocument_CurrentPageLayout">CurrentPageLayout</a> property
on the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_EvenPages" data-uid="C1.C1Preview.DocumentPageLayouts.EvenPages">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.EvenPages.html#C1_C1Preview_DocumentPageLayouts_EvenPages">EvenPages</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> used for even pages of the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_FirstPage" data-uid="C1.C1Preview.DocumentPageLayouts.FirstPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.FirstPage.html#C1_C1Preview_DocumentPageLayouts_FirstPage">FirstPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> used for the first page of the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_Item_C1_C1Preview_PageLayoutKindEnum_" data-uid="C1.C1Preview.DocumentPageLayouts.Item(C1.C1Preview.PageLayoutKindEnum)">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.Item.html#C1_C1Preview_DocumentPageLayouts_Item_C1_C1Preview_PageLayoutKindEnum_">this[PageLayoutKindEnum]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> of the specified <a class="xref" href="C1.C1Preview.PageLayoutKindEnum.html">PageLayoutKindEnum</a>.
Returns <b>null</b> if the specified kind of page layout has not been specified
for the current <a class="xref" href="C1.C1Preview.DocumentPageLayouts.html">DocumentPageLayouts</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_LastPage" data-uid="C1.C1Preview.DocumentPageLayouts.LastPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.LastPage.html#C1_C1Preview_DocumentPageLayouts_LastPage">LastPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> used for the last page of the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_OddPages" data-uid="C1.C1Preview.DocumentPageLayouts.OddPages">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.OddPages.html#C1_C1Preview_DocumentPageLayouts_OddPages">OddPages</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.PageLayout.html">PageLayout</a> used for odd pages of the current document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_Owner" data-uid="C1.C1Preview.DocumentPageLayouts.Owner">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.Owner.html#C1_C1Preview_DocumentPageLayouts_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object that owns the current <a class="xref" href="C1.C1Preview.DocumentPageLayouts.html">DocumentPageLayouts</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_PrintFooterOnFirstPage" data-uid="C1.C1Preview.DocumentPageLayouts.PrintFooterOnFirstPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.PrintFooterOnFirstPage.html#C1_C1Preview_DocumentPageLayouts_PrintFooterOnFirstPage">PrintFooterOnFirstPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the page footer should
print on the first page of the document.
This property overrides other related properties when set to <b>false</b>.
The default value is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_PrintFooterOnLastPage" data-uid="C1.C1Preview.DocumentPageLayouts.PrintFooterOnLastPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.PrintFooterOnLastPage.html#C1_C1Preview_DocumentPageLayouts_PrintFooterOnLastPage">PrintFooterOnLastPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the page footer should
print on the last page of the document.
This property overrides other related properties when set to <b>false</b>.
The default value is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_PrintHeaderOnFirstPage" data-uid="C1.C1Preview.DocumentPageLayouts.PrintHeaderOnFirstPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.PrintHeaderOnFirstPage.html#C1_C1Preview_DocumentPageLayouts_PrintHeaderOnFirstPage">PrintHeaderOnFirstPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the page header should
print on the first page of the document.
This property overrides other related properties when set to <b>false</b>.
The default value is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_PrintHeaderOnLastPage" data-uid="C1.C1Preview.DocumentPageLayouts.PrintHeaderOnLastPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.PrintHeaderOnLastPage.html#C1_C1Preview_DocumentPageLayouts_PrintHeaderOnLastPage">PrintHeaderOnLastPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the page header should
print on the last page of the document.
This property overrides other related properties when set to <b>false</b>.
The default value is <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentPageLayouts_SuppressEmptyLastPage" data-uid="C1.C1Preview.DocumentPageLayouts.SuppressEmptyLastPage">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.SuppressEmptyLastPage.html#C1_C1Preview_DocumentPageLayouts_SuppressEmptyLastPage">SuppressEmptyLastPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to suppress adding an empty page
at the end of the document if the last object contains a page break after itself.
The default value is <b>false</b>.</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="C1_C1Preview_DocumentPageLayouts_Clear" data-uid="C1.C1Preview.DocumentPageLayouts.Clear">
          <a class="xref" href="C1.C1Preview.DocumentPageLayouts.Clear.html#C1_C1Preview_DocumentPageLayouts_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the current <a class="xref" href="C1.C1Preview.DocumentPageLayouts.html">DocumentPageLayouts</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
