---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/PageLabel
---

# PageLabel

## Overview

`PageLabel` is a class in Aspose.PDF FOSS for .NET.

Represents a page label range.

This class provides 4 methods for working with PageLabel objects in .NET programs.
Available methods include: `FormatLabel`, `FormatNumber`, `ToAlpha`, `ToRoman`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `LastPageIndex`, `NumberingStyle`, `NumberingStyleName`, `Prefix`, `Start`, `StartPage`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `StartPage` | `int` | Read/Write | 0-based page index where this label range starts. |
| `LastPageIndex` | `int` | Read | 0-based page index of the last page this range applies to, or -1 for end of document. |
| `Style` | `NumberingStyle` | Read/Write | The numbering style. |
| `NumberingStyle` | `NumberingStyle` | Read/Write | Alias for Style. |
| `StartingValue` | `int` | Read/Write | Alias for Start. |
| `NumberingStyleName` | `string` | Read | The numbering style as a string (e.g., "NumeralsArabic", "NumeralsRomanUppercase"). |
| `Prefix` | `string?` | Read/Write | The label prefix string (empty string if not set). |
| `Start` | `int` | Read/Write | The starting number for this range. |

## Methods

| Signature | Description |
|-----------|-------------|
| `FormatLabel(pageIndex: int)` | Format a label for a page at the given 0-based index. |
| `FormatNumber(num: int, style: NumberingStyle)` | Format a positive integer according to the given numbering style. |
| `ToRoman(num: int)` | Convert a positive integer to an uppercase Roman numeral string. |
| `ToAlpha(num: int)` | Convert a positive integer to an alphabetic label (A=1, Z=26, AA=27, etc.). |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)