Represents a page range
More...
|
int | Count [get] |
| Gets the page count
|
|
int | First [get] |
| Gets the first number of page More...
|
|
int | Last [get] |
| Gets the last number of page
|
|
◆ PageRange() [1/3]
Initializes a new instance of the PageRange class.
- Parameters
-
◆ PageRange() [2/3]
Initializes a new instance of the PageRange class.
- Parameters
-
◆ PageRange() [3/3]
Initializes a new instance of the PageRange class.
- Parameters
-
document | The document. |
pageRangeSet | The page range set. |
◆ Parse()
Parses a PageRange from the specified string or throws an exception if it can't be parsed.
- Parameters
-
range | The string to parse. |
- Returns
- The PageRange that was parsed from the string.
◆ ToArray()
Return the complete array of integer page numbers after Parse is called.
NOTE: This is a stop gap to allow multiple page ranges like 1-3,4,6-10 used by a couple sample apps like PDFtoImage.
- Parameters
-
maxPagesInDocument | Max page in the document. Uses if page range set to "all", "even", "odd" or "3-" for bounding of array. Set it to -1 if array already bounded (set "1-5"). |
- Returns
- int[] of page numbers.
◆ TryParse()
static bool SolidFramework.PageRange.TryParse |
( |
string |
range, |
|
|
out PageRange |
result |
|
) |
| |
|
static |
Attempts to parse a PageRange from the specified string.
- Parameters
-
range | The string to parse. |
result | A PageRange to store the result into. This will be set to null if range couldn't be parsed. |
- Returns
- true if range was parsed successfully; otherwise, false.
◆ First
int SolidFramework.PageRange.First |
|
get |
Gets the first number of page
- Returns
- The number of the first page in the range.