iText 8.0.2 API
|
Class representing a page range, for instance a page range can contain pages 5, then pages 10 through 15, then page 18, then page 21 and so on. More...
Classes |
|
interface | IPageRangePart |
Inner interface for range parts definition More... |
|
class | PageRangePartAfter |
Class for range part containing a range of pages for all pages after a given start page More... |
|
class | PageRangePartAnd |
Class for range part based on several range parts. More... |
|
class | PageRangePartOddEven |
Class for range part for all even or odd pages. More... |
|
class | PageRangePartSequence |
Class for range part containing a range of pages represented by a start and an end page More... |
|
class | PageRangePartSingle |
Class for range part containing a single page More... |
|
Public Member Functions |
|
PageRange () | |
Constructs an empty PageRange instance. More... |
|
PageRange (String pageRange) | |
Constructs a PageRange instance from a range in a string form, for example: "1-12, 15, 45-66". More... |
|
virtual iText.Kernel.Utils.PageRange | AddPageRangePart (PageRange.IPageRangePart part) |
Adds any page range part to this page range. More... |
|
virtual iText.Kernel.Utils.PageRange | AddPageSequence (int startPageNumber, int endPageNumber) |
Adds a page sequence to the range. More... |
|
virtual iText.Kernel.Utils.PageRange | AddSinglePage (int pageNumber) |
Adds a single page to the range. More... |
|
virtual IList< int > | GetQualifyingPageNums (int nbPages) |
Gets the list of pages that have been added to the range so far. More... |
|
virtual bool | IsPageInRange (int pageNumber) |
Checks if a given page is present in the range built so far. More... |
|
override bool | Equals (Object obj) |
override int | GetHashCode () |
Class representing a page range, for instance a page range can contain pages 5, then pages 10 through 15, then page 18, then page 21 and so on.
|
inline |
Constructs an empty PageRange instance.
|
inline |
Constructs a PageRange instance from a range in a string form, for example: "1-12, 15, 45-66".
Constructs a PageRange instance from a range in a string form, for example: "1-12, 15, 45-66". More advanced forms are also available, for example:
pageRange | a String of page ranges |
|
inlinevirtual |
Adds any page range part to this page range.
Adds any page range part to this page range. Users may define and plug in custom implementations for behavior not found in the standard library.
part | a custom implementation of IPageRangePart |
|
inlinevirtual |
Adds a page sequence to the range.
startPageNumber | the starting page number of the sequence |
endPageNumber | the finishing page number of the sequence |
|
inlinevirtual |
Adds a single page to the range.
pageNumber | the page number to add |
|
inline |
|
inline |
|
inlinevirtual |
Gets the list of pages that have been added to the range so far.
nbPages | number of pages of the document to get the pages, to list only the pages eligible for this document. |
|
inlinevirtual |
Checks if a given page is present in the range built so far.
pageNumber | the page number to check |
true
if the page is present in this range, false
otherwise