[]
        
(Showing Draft Content)

C1.C1Preview.OutputRange.-ctor

OutputRange Constructor

OutputRange()

Creates a new instance of the output range that includes all pages in the document. Note that enumerating the resulting range must be broken by the client.

Declaration
public OutputRange()

OutputRange(int)

Creates a new instance of the output range that includes all pages in the document.

Declaration
public OutputRange(int maxPageNumber)
Parameters
Type Name Description
int maxPageNumber

The maximum page number (used to prevent infinite enumeration).

OutputRange(int, int)

Creates an instance of OutputRange that includes a single interval of pages. FromPage may be greater than ToPage, in that case the range is inverted.

Declaration
public OutputRange(int fromPage, int toPage)
Parameters
Type Name Description
int fromPage

The number of the first page to include (1-based).

int toPage

The number of the last page to include (1-based).

OutputRange(int[])

Creates an instance of OutputRange that includes all pages with numbers specified in the list. The list may include Dash values to specify intervals.

Declaration
public OutputRange(int[] pageNumbers)
Parameters
Type Name Description
int[] pageNumbers

The array of page numbers to include.

OutputRange(string)

Creates an instance of OutputRange that includes pages specified by the string parameter. The string may contain:

  • page numbers (1-based) separated by spaces or commas;
  • dashes ('-') to specify intervals (a dash at the end implies infinity).
Declaration
public OutputRange(string pages)
Parameters
Type Name Description
string pages

The pages to be included.