# C1.C1Preview.OutputRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_OutputRange" data-uid="C1.C1Preview.OutputRange" class="text-break">OutputRange Class
</h1>
  <div class="markdown level0 summary"><p>Describes a part of the document (pages or objects) that is to be
exported or printed.
Note: all page numbers are 1-based.</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">OutputRange</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</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_OutputRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class OutputRange : IEnumerable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class OutputRange
    Implements IEnumerable, ICloneable</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_OutputRange__ctor" data-uid="C1.C1Preview.OutputRange.#ctor">
          <a class="xref" href="C1.C1Preview.OutputRange.-ctor.html#C1_C1Preview_OutputRange__ctor">OutputRange()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the output range that includes all pages in the document.
Note that enumerating the resulting range must be broken by the client.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange__ctor_System_Int32_" data-uid="C1.C1Preview.OutputRange.#ctor(System.Int32)">
          <a class="xref" href="C1.C1Preview.OutputRange.-ctor.html#C1_C1Preview_OutputRange__ctor_System_Int32_">OutputRange(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the output range that includes all pages in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange__ctor_System_Int32_System_Int32_" data-uid="C1.C1Preview.OutputRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Preview.OutputRange.-ctor.html#C1_C1Preview_OutputRange__ctor_System_Int32_System_Int32_">OutputRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of OutputRange that includes a single interval of
pages. FromPage may be greater than ToPage, in that case the range is
inverted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange__ctor_System_Int32___" data-uid="C1.C1Preview.OutputRange.#ctor(System.Int32[])">
          <a class="xref" href="C1.C1Preview.OutputRange.-ctor.html#C1_C1Preview_OutputRange__ctor_System_Int32___">OutputRange(int[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of OutputRange that includes all pages with
numbers specified in the list. The list may include Dash values to
specify intervals.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange__ctor_System_String_" data-uid="C1.C1Preview.OutputRange.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.OutputRange.-ctor.html#C1_C1Preview_OutputRange__ctor_System_String_">OutputRange(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of OutputRange that includes pages specified by the
string parameter.
The string may contain:</p>
<ul>
<li>page numbers (1-based) separated by spaces or commas;</li>
<li>dashes ('-') to specify intervals (a dash at the end implies infinity).</li>
</ul>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_OutputRange_Dash" data-uid="C1.C1Preview.OutputRange.Dash">
          <a class="xref" href="C1.C1Preview.OutputRange.Dash.html">Dash</a>
        </td>
        <td class="markdown level1 summary"><p>If included in the page indices list, specifies that all pages
from preceeding to the next one are to be included in the output.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_NoPage" data-uid="C1.C1Preview.OutputRange.NoPage">
          <a class="xref" href="C1.C1Preview.OutputRange.NoPage.html">NoPage</a>
        </td>
        <td class="markdown level1 summary"><p>This value indicates an invalid page number.</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_OutputRange_All" data-uid="C1.C1Preview.OutputRange.All">
          <a class="xref" href="C1.C1Preview.OutputRange.All.html#C1_C1Preview_OutputRange_All">All</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an all-inclusive range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_FromPage" data-uid="C1.C1Preview.OutputRange.FromPage">
          <a class="xref" href="C1.C1Preview.OutputRange.FromPage.html#C1_C1Preview_OutputRange_FromPage">FromPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first page in the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_Inverted" data-uid="C1.C1Preview.OutputRange.Inverted">
          <a class="xref" href="C1.C1Preview.OutputRange.Inverted.html#C1_C1Preview_OutputRange_Inverted">Inverted</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value indicating whether the range should be inverted.
If the range is inverted, the range's iterator goes from the end of the
range backwards.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_MaxPageNumber" data-uid="C1.C1Preview.OutputRange.MaxPageNumber">
          <a class="xref" href="C1.C1Preview.OutputRange.MaxPageNumber.html#C1_C1Preview_OutputRange_MaxPageNumber">MaxPageNumber</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the absolute upper limit for page numbers in the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_PageCount" data-uid="C1.C1Preview.OutputRange.PageCount">
          <a class="xref" href="C1.C1Preview.OutputRange.PageCount.html#C1_C1Preview_OutputRange_PageCount">PageCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of pages in the range.
Note that if the MaxPageNumber has not been set, this
property will get int.MaxValue.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_PageNumbers" data-uid="C1.C1Preview.OutputRange.PageNumbers">
          <a class="xref" href="C1.C1Preview.OutputRange.PageNumbers.html#C1_C1Preview_OutputRange_PageNumbers">PageNumbers</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the list of page numbers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_ToPage" data-uid="C1.C1Preview.OutputRange.ToPage">
          <a class="xref" href="C1.C1Preview.OutputRange.ToPage.html#C1_C1Preview_OutputRange_ToPage">ToPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last page in the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_Type" data-uid="C1.C1Preview.OutputRange.Type">
          <a class="xref" href="C1.C1Preview.OutputRange.Type.html#C1_C1Preview_OutputRange_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Type of range: all pages, range of pages etc.</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_OutputRange_AssignFrom_C1_C1Preview_OutputRange_" data-uid="C1.C1Preview.OutputRange.AssignFrom(C1.C1Preview.OutputRange)">
          <a class="xref" href="C1.C1Preview.OutputRange.AssignFrom.html#C1_C1Preview_OutputRange_AssignFrom_C1_C1Preview_OutputRange_">AssignFrom(OutputRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies values from another instance of OutputRange.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_Clone" data-uid="C1.C1Preview.OutputRange.Clone">
          <a class="xref" href="C1.C1Preview.OutputRange.Clone.html#C1_C1Preview_OutputRange_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clones the current OutputRange.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_Contains_System_Int32_" data-uid="C1.C1Preview.OutputRange.Contains(System.Int32)">
          <a class="xref" href="C1.C1Preview.OutputRange.Contains.html#C1_C1Preview_OutputRange_Contains_System_Int32_">Contains(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether the specified page is within the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_GetEnumerator" data-uid="C1.C1Preview.OutputRange.GetEnumerator">
          <a class="xref" href="C1.C1Preview.OutputRange.GetEnumerator.html#C1_C1Preview_OutputRange_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a new enumerator that allows to loop
through all pages in the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_GetFirstPage" data-uid="C1.C1Preview.OutputRange.GetFirstPage">
          <a class="xref" href="C1.C1Preview.OutputRange.GetFirstPage.html#C1_C1Preview_OutputRange_GetFirstPage">GetFirstPage()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the first page in the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_GetNextPage_System_Int32_" data-uid="C1.C1Preview.OutputRange.GetNextPage(System.Int32)">
          <a class="xref" href="C1.C1Preview.OutputRange.GetNextPage.html#C1_C1Preview_OutputRange_GetNextPage_System_Int32_">GetNextPage(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the page number in the range following the specified one, or
-1 if the specified number was the last one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_GetNextPage_System_Int32_System_Int32__" data-uid="C1.C1Preview.OutputRange.GetNextPage(System.Int32,System.Int32@)">
          <a class="xref" href="C1.C1Preview.OutputRange.GetNextPage.html#C1_C1Preview_OutputRange_GetNextPage_System_Int32_System_Int32__">GetNextPage(int, ref int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the page number in the range following the specified one, or
-1 if the specified number was the last one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_OutputRange_ToString" data-uid="C1.C1Preview.OutputRange.ToString">
          <a class="xref" href="C1.C1Preview.OutputRange.ToString.html#C1_C1Preview_OutputRange_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current OutputRange.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
