PageLabel
概述
PageLabel 是一个类在Aspose.PDF FOSS的.NET中.
表示一个页面标签范围.
本类提供了4种方法,用于在NET程序中与PageLabel对象工作. 有的方法包括: FormatLabel, FormatNumber, ToAlpha, ToRoman. 所有公众成员在安装了Aspose.PDF FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: LastPageIndex, NumberingStyle, NumberingStyleName, Prefix, Start, StartPage,另外两个.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
StartPage | int | 阅读 | 0-based page index where this label range starts. |
LastPageIndex | int | 阅读 | 0-based page index of the last page this range applies to, or -1 for end of document. |
Style | NumberingStyle | 阅读/写作 | 编号方式. |
NumberingStyle | NumberingStyle | 阅读/写作 | 名为"风格". |
StartingValue | int | 阅读/写作 | 标签为开始. |
NumberingStyleName | string | 阅读 | 编号风格作为字符串 (例如",NumeralsArabic"",NumeralsRomanUppercase"). |
Prefix | string? | 阅读/写作 | 标签前字符串 (如果未设置,则空的字节). |
Start | int | 阅读/写作 | 这个范围的起始号码. |
方法
| Signature | 描述情况 |
|---|---|
FormatLabel(pageIndex: int) | 在给定的基于0的索引中格式化一个页面标签. |
FormatNumber(num: int, style: NumberingStyle) | 根据给定的编号风格进行正整数的格式. |
ToRoman(num: int) | 将正整数转换为大写的罗马数字字符串. |
ToAlpha(num: int) | 将正整数转换为字母标签 (A=1,Z=26,AA=27等). |