# PdfPageLabelRange

Defines a generated PDF page-label rule beginning at a one-based document page number.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPageLabelRange.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L8)

**Modifiers**

sealed

Defines a generated PDF page-label rule beginning at a one-based document page number.

## Inheritance

- object
- PdfPageLabelRange

## Usage

Explore 3 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 2

- Property [PdfConversionProofOptions.RequiredPageLabelRanges](/api/pdf/officeimo-pdf-pdfconversionproofoptions/#property-requiredpagelabelranges)
- Property [PdfCreateOptions.PageLabelRanges](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-pagelabelranges)

### Accepted by parameters 1

- Method [PdfConversionProofOptions.RequirePageLabelRanges](/api/pdf/officeimo-pdf-pdfconversionproofoptions/#method-requirepagelabelranges-officeimo-pdf-pdfpagelabelrange) parameter `ranges`

Filter members 

Show inherited

## Constructors

`public PdfPageLabelRange(int startPageNumber, PdfPageNumberStyle style, int startNumber = 1, string? prefix = null)` [#](#constructor-ctor-int32-officeimo-pdf-pdfpagenumberstyle-int32-string)

[PdfPageLabelRange.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L8)

Creates a generated page-label rule.

Parameters

**startPageNumber int required**

**style OfficeIMO.Pdf.PdfPageNumberStyle required**

**startNumber int = 1 optional**

**prefix string? = null optional**

## 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)

[PdfPageLabelRange.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L26)

One-based document page number where this label rule begins.

`public PdfPageNumberStyle Style { get; }` [#](#property-style)

[PdfPageLabelRange.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L29)

Numbering style used by this label rule.

`public int StartNumber { get; }` [#](#property-startnumber)

[PdfPageLabelRange.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L32)

First visible number emitted for this label rule.

`public string? Prefix { get; }` [#](#property-prefix)

[PdfPageLabelRange.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPageLabelRange.cs#L35)

Optional label prefix, for example "A-" or "Appendix ".

<!-- PowerForge markdown artifact sha256:EFB1E4FBD57D29CC122F15408E006CFA36A9FB92CA73607F89D20993D0E71CC9 -->
