# PdfPrintPageRange

One-based inclusive page range used to initialize a PDF viewer print dialog.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPrintPageRange.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPrintPageRange.cs#L10)

**Modifiers**

sealed

One-based inclusive page range used to initialize a PDF viewer print dialog.

## Inheritance

- object
- PdfPrintPageRange

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [PdfViewerPreferencesOptions.PrintPageRanges](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#property-printpageranges)

### Accepted by parameters 1

- Method [PdfViewerPreferencesOptions.AddPrintPageRange](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#method-addprintpagerange-officeimo-pdf-pdfprintpagerange) parameter `range`

Filter members 

Show inherited

## Constructors

`public PdfPrintPageRange(int startPageNumber, int endPageNumber)` [#](#constructor-ctor-int32-int32)

[PdfPrintPageRange.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPrintPageRange.cs#L10)

Creates a one-based inclusive print page range.

Parameters

**startPageNumber int required**

**endPageNumber int required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int StartPageNumber { get; }` [#](#property-startpagenumber)

[PdfPrintPageRange.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPrintPageRange.cs#L24)

One-based first page included in the print range.

`public int EndPageNumber { get; }` [#](#property-endpagenumber)

[PdfPrintPageRange.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPrintPageRange.cs#L27)

One-based last page included in the print range.

<!-- PowerForge markdown artifact sha256:949DFBEECDB25E86985A50113EB1B75CF906E5142331FADC2A05E0F1441A527C -->
