# GrapeCity.Documents.Common.OutputRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_OutputRange" data-uid="GrapeCity.Documents.Common.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.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</div>
    <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="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_OutputRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OutputRange : IEnumerable&lt;int&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OutputRange
    Implements IEnumerable(Of Integer), 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="GrapeCity_Documents_Common_OutputRange__ctor_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_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="GrapeCity_Documents_Common_OutputRange__ctor_System_Int32_System_Int32_System_Boolean_" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.Int32,System.Int32,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_OutputRange__ctor_System_Int32_System_Int32_System_Boolean_">OutputRange(int, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of OutputRange that includes a single interval of
pages.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange__ctor_System_Int32___" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.Int32[])">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_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.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange__ctor_System_Int32___System_Boolean_" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.Int32[],System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_OutputRange__ctor_System_Int32___System_Boolean_">OutputRange(int[], bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of OutputRange that includes all pages with
numbers specified in the list.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange__ctor_System_String_" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_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 commas;</li>
<li>dashes ('-') to specify intervals (a dash at the end implies infinity).</li>
</ul>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange__ctor_System_String_System_Boolean_" data-uid="GrapeCity.Documents.Common.OutputRange.#ctor(System.String,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.-ctor.html#GrapeCity_Documents_Common_OutputRange__ctor_System_String_System_Boolean_">OutputRange(string, bool)</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 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="GrapeCity_Documents_Common_OutputRange_All" data-uid="GrapeCity.Documents.Common.OutputRange.All">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.All.html">All</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an all-inclusive range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_AllInverted" data-uid="GrapeCity.Documents.Common.OutputRange.AllInverted">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.AllInverted.html">AllInverted</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an all-inclusive range with inverted order.</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="GrapeCity_Documents_Common_OutputRange_FromPage" data-uid="GrapeCity.Documents.Common.OutputRange.FromPage">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.FromPage.html#GrapeCity_Documents_Common_OutputRange_FromPage">FromPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first page in the range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_Inverted" data-uid="GrapeCity.Documents.Common.OutputRange.Inverted">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.Inverted.html#GrapeCity_Documents_Common_OutputRange_Inverted">Inverted</a>
        </td>
        <td class="markdown level1 summary"><p>Gets 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="GrapeCity_Documents_Common_OutputRange_ToPage" data-uid="GrapeCity.Documents.Common.OutputRange.ToPage">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.ToPage.html#GrapeCity_Documents_Common_OutputRange_ToPage">ToPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last page in the range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_Type" data-uid="GrapeCity.Documents.Common.OutputRange.Type">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.Type.html#GrapeCity_Documents_Common_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="GrapeCity_Documents_Common_OutputRange_Contains_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.Contains(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.Contains.html#GrapeCity_Documents_Common_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="GrapeCity_Documents_Common_OutputRange_Equals_System_Object_" data-uid="GrapeCity.Documents.Common.OutputRange.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.Equals.html#GrapeCity_Documents_Common_OutputRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetEnumerator" data-uid="GrapeCity.Documents.Common.OutputRange.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetEnumerator.html#GrapeCity_Documents_Common_OutputRange_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a new enumerator that allows looping
through all pages in the range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetEnumerator_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetEnumerator(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetEnumerator.html#GrapeCity_Documents_Common_OutputRange_GetEnumerator_System_Int32_">GetEnumerator(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a new enumerator that allows looping through all pages in the range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetEnumerator_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetEnumerator(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetEnumerator.html#GrapeCity_Documents_Common_OutputRange_GetEnumerator_System_Int32_System_Int32_">GetEnumerator(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a new enumerator that allows looping
through all pages in the range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetHashCode" data-uid="GrapeCity.Documents.Common.OutputRange.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetHashCode.html#GrapeCity_Documents_Common_OutputRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as the default hash function.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetMaxPage_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetMaxPage(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetMaxPage.html#GrapeCity_Documents_Common_OutputRange_GetMaxPage_System_Int32_">GetMaxPage(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ending page number of the current range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetMinPage_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetMinPage(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetMinPage.html#GrapeCity_Documents_Common_OutputRange_GetMinPage_System_Int32_">GetMinPage(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the starting page number of the current range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetPage_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetPage(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetPage.html#GrapeCity_Documents_Common_OutputRange_GetPage_System_Int32_System_Int32_System_Int32_">GetPage(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the page number of a page with a specified index within the current range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_GetPageCount_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.GetPageCount(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.GetPageCount.html#GrapeCity_Documents_Common_OutputRange_GetPageCount_System_Int32_System_Int32_">GetPageCount(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of pages in the current range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_InRange_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.OutputRange.InRange(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.InRange.html#GrapeCity_Documents_Common_OutputRange_InRange_System_Int32_System_Int32_">InRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether page numbers specified by the current OutputRange fall within a specified range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_ToString" data-uid="GrapeCity.Documents.Common.OutputRange.ToString">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.ToString.html#GrapeCity_Documents_Common_OutputRange_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current OutputRange.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_OutputRange_TryParse_System_String_GrapeCity_Documents_Common_OutputRange__" data-uid="GrapeCity.Documents.Common.OutputRange.TryParse(System.String,GrapeCity.Documents.Common.OutputRange@)">
          <a class="xref" href="GrapeCity.Documents.Common.OutputRange.TryParse.html#GrapeCity_Documents_Common_OutputRange_TryParse_System_String_GrapeCity_Documents_Common_OutputRange__">TryParse(string, out OutputRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Tries to parse specified string and create <a class="xref" href="GrapeCity.Documents.Common.OutputRange.html">OutputRange</a> object from it.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
