Method Add
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Add(int, PdfPageNumberingStyle)
Adds a new labeling range with the specified first page index and numbering style to the PdfPageLabelMap.
public void Add(int firstPageIndex, PdfPageNumberingStyle style)
Parameters
firstPageIndexintThe zero-based index of the first page in the new labeling range.
stylePdfPageNumberingStyleThe numbering style to use for the numeric portion of page labels in the range.
Remarks
If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.
firstPageIndex must be greater than or equal to 0.
See the Page labels section for information about creating and managing page labeling ranges.
Exceptions
- ArgumentOutOfRangeException
firstPageIndexis negative, orstyleis Unspecified or an undefined PdfPageNumberingStyle value.
Add(int, PdfPageNumberingStyle, string)
Adds a new labeling range with the specified first page index, numbering style, and label prefix to the PdfPageLabelMap.
public void Add(int firstPageIndex, PdfPageNumberingStyle style, string prefix)
Parameters
firstPageIndexintThe zero-based index of the first page in the new labeling range.
stylePdfPageNumberingStyleThe numbering style to use for the numeric portion of page labels in the range.
prefixstringThe prefix to prepend to page labels in the range.
Remarks
If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.
firstPageIndex must be greater than or equal to 0, and
prefix must not be null.
See the Page labels section for information about creating and managing page labeling ranges.
Exceptions
- ArgumentOutOfRangeException
firstPageIndexis negative, orstyleis Unspecified or an undefined PdfPageNumberingStyle value.- ArgumentNullException
prefixisnull.
Add(int, PdfPageNumberingStyle, string, int)
Adds a new labeling range with the specified first page index, numbering style, label prefix, and starting number to the PdfPageLabelMap.
public void Add(int firstPageIndex, PdfPageNumberingStyle style, string prefix, int startNumber)
Parameters
firstPageIndexintThe zero-based index of the first page in the new labeling range.
stylePdfPageNumberingStyleThe numbering style to use for the numeric portion of page labels in the range.
prefixstringThe prefix to prepend to page labels in the range.
startNumberintThe numeric portion of the first page label in the range.
Remarks
If a labeling range with the same first-page index already exists, it is overwritten. Use Contains(int) to determine whether an entry already exists.
firstPageIndex must be greater than or equal to 0, prefix must not be null, and startNumber must be
greater than or equal to 1.
Page labels in the range are numbered sequentially starting with startNumber.
See the Page labels section for information about creating and managing page labeling ranges.
Exceptions
- ArgumentOutOfRangeException
firstPageIndexis less than 0,startNumberis less than 1, orstyleis Unspecified or an undefined PdfPageNumberingStyle value.- ArgumentNullException
prefixisnull.