# C1.C1Preview.C1Page

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_C1Page" data-uid="C1.C1Preview.C1Page" class="text-break">C1Page Class
</h1>
  <div class="markdown level0 summary"><p>Represents a generated page of a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.</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">C1Page</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_C1Page_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class C1Page : IDocumentLocation, IComparable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class C1Page
    Implements IDocumentLocation, IComparable</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="C1_C1Preview_C1Page_AcceptButton" data-uid="C1.C1Preview.C1Page.AcceptButton">
          <a class="xref" href="C1.C1Preview.C1Page.AcceptButton.html#C1_C1Preview_C1Page_AcceptButton">AcceptButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.RenderInputButton.html">RenderInputButton</a> representing the accept button for the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Document" data-uid="C1.C1Preview.C1Page.Document">
          <a class="xref" href="C1.C1Preview.C1Page.Document.html#C1_C1Preview_C1Page_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> containing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Fragments" data-uid="C1.C1Preview.C1Page.Fragments">
          <a class="xref" href="C1.C1Preview.C1Page.Fragments.html#C1_C1Preview_C1Page_Fragments">Fragments</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of fragments for the current page.
Note that accessing this property always initializes the <b>Fragments</b> collection
if it has not been initialized yet. Use <a class="xref" href="C1.C1Preview.C1Page.HasFragments.html#C1_C1Preview_C1Page_HasFragments">HasFragments</a> to test whether
the <b>Fragments</b> collection exists.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_HasFragments" data-uid="C1.C1Preview.C1Page.HasFragments">
          <a class="xref" href="C1.C1Preview.C1Page.HasFragments.html#C1_C1Preview_C1Page_HasFragments">HasFragments</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.C1Page.Fragments.html#C1_C1Preview_C1Page_Fragments">Fragments</a> collection for the current page
has been initialized and contains one or more elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_ID" data-uid="C1.C1Preview.C1Page.ID">
          <a class="xref" href="C1.C1Preview.C1Page.ID.html#C1_C1Preview_C1Page_ID">ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a unique ID associated with the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Index" data-uid="C1.C1Preview.C1Page.Index">
          <a class="xref" href="C1.C1Preview.C1Page.Index.html#C1_C1Preview_C1Page_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the 0-based index of the current page in the containing collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_IsEmpty" data-uid="C1.C1Preview.C1Page.IsEmpty">
          <a class="xref" href="C1.C1Preview.C1Page.IsEmpty.html#C1_C1Preview_C1Page_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current page contains any <a class="xref" href="C1.C1Preview.RenderFragment.html">RenderFragment</a> objects
that belong to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Owner" data-uid="C1.C1Preview.C1Page.Owner">
          <a class="xref" href="C1.C1Preview.C1Page.Owner.html#C1_C1Preview_C1Page_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PageCollection.html">C1PageCollection</a> containing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_PageCount" data-uid="C1.C1Preview.C1Page.PageCount">
          <a class="xref" href="C1.C1Preview.C1Page.PageCount.html#C1_C1Preview_C1Page_PageCount">PageCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the logical page count.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_PageNo" data-uid="C1.C1Preview.C1Page.PageNo">
          <a class="xref" href="C1.C1Preview.C1Page.PageNo.html#C1_C1Preview_C1Page_PageNo">PageNo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the logical 1-based page number of the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_PageSettings" data-uid="C1.C1Preview.C1Page.PageSettings">
          <a class="xref" href="C1.C1Preview.C1Page.PageSettings.html#C1_C1Preview_C1Page_PageSettings">PageSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PageSettings.html">C1PageSettings</a> for the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_ResolvedInfo" data-uid="C1.C1Preview.C1Page.ResolvedInfo">
          <a class="xref" href="C1.C1Preview.C1Page.ResolvedInfo.html#C1_C1Preview_C1Page_ResolvedInfo">ResolvedInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.PageResolvedInfo.html">PageResolvedInfo</a> object corresponding to the current page.
After the current page has been resolved, this property allows to retrieve
absolute values describing the geometry of the page, margins, and columns.</p>
<p>
Note that if the current page has not been resolved yet,
the value of this property is <b>null</b>, so you should always
test it before accessing the nested properties.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_X" data-uid="C1.C1Preview.C1Page.X">
          <a class="xref" href="C1.C1Preview.C1Page.X.html#C1_C1Preview_C1Page_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the logical horizontal coordinate of the current page in the document.
This property is 0 in documents that have no horizontal pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Y" data-uid="C1.C1Preview.C1Page.Y">
          <a class="xref" href="C1.C1Preview.C1Page.Y.html#C1_C1Preview_C1Page_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the logical vertical coordinate of the current page in the document.
In documents without horizontal pages, this property corresponds
to the page number minus one.</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_C1Page_AsMetafile" data-uid="C1.C1Preview.C1Page.AsMetafile">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile">AsMetafile()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.
This method draws input controls.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_AsMetafile_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Boolean_">AsMetafile(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,C1.C1Preview.PageDrawParams)">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_">AsMetafile(Graphics, PageDrawParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,System.Drawing.Imaging.EmfType,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_">AsMetafile(Graphics, EmfType, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_System_Drawing_Drawing2D_SmoothingMode_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Graphics,System.Drawing.Imaging.EmfType,System.Boolean,System.Boolean,System.Drawing.Drawing2D.SmoothingMode)">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Graphics_System_Drawing_Imaging_EmfType_System_Boolean_System_Boolean_System_Drawing_Drawing2D_SmoothingMode_">AsMetafile(Graphics, EmfType, bool, bool, SmoothingMode)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_AsMetafile_System_Drawing_Imaging_EmfType_System_Boolean_" data-uid="C1.C1Preview.C1Page.AsMetafile(System.Drawing.Imaging.EmfType,System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.AsMetafile.html#C1_C1Preview_C1Page_AsMetafile_System_Drawing_Imaging_EmfType_System_Boolean_">AsMetafile(EmfType, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a> representing the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,C1.C1Preview.PageDrawParams)">
          <a class="xref" href="C1.C1Preview.C1Page.Draw.html#C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_C1_C1Preview_PageDrawParams_">Draw(Graphics, PageDrawParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.Draw.html#C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_">Draw(Graphics, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.C1Page.Draw(System.Drawing.Graphics,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.Draw.html#C1_C1Preview_C1Page_Draw_System_Drawing_Graphics_System_Boolean_System_Boolean_">Draw(Graphics, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws the current page on a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_FindFragment_C1_C1Preview_PointD_" data-uid="C1.C1Preview.C1Page.FindFragment(C1.C1Preview.PointD)">
          <a class="xref" href="C1.C1Preview.C1Page.FindFragment.html#C1_C1Preview_C1Page_FindFragment_C1_C1Preview_PointD_">FindFragment(PointD)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.C1Preview.RenderFragment.html">RenderFragment</a> at the specified position on the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_FindHyperlink_C1_C1Preview_PointD_" data-uid="C1.C1Preview.C1Page.FindHyperlink(C1.C1Preview.PointD)">
          <a class="xref" href="C1.C1Preview.C1Page.FindHyperlink.html#C1_C1Preview_C1Page_FindHyperlink_C1_C1Preview_PointD_">FindHyperlink(PointD)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a hyperlink at the specified position on the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_GetHyperlinks" data-uid="C1.C1Preview.C1Page.GetHyperlinks">
          <a class="xref" href="C1.C1Preview.C1Page.GetHyperlinks.html#C1_C1Preview_C1Page_GetHyperlinks">GetHyperlinks()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of all hyperlinks on the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_C1Page_GetInputFragments_System_Boolean_" data-uid="C1.C1Preview.C1Page.GetInputFragments(System.Boolean)">
          <a class="xref" href="C1.C1Preview.C1Page.GetInputFragments.html#C1_C1Preview_C1Page_GetInputFragments_System_Boolean_">GetInputFragments(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the array of all <a class="xref" href="C1.C1Preview.RenderInputFragment.html">RenderInputFragment</a> objects on the current page.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
