[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OutputRange.-ctor

OutputRange Constructor

OutputRange(int, int, bool)

Creates an instance of OutputRange that includes a single interval of pages.

Declaration
public OutputRange(int fromPage, int toPage, bool inverted)
Public Sub New(fromPage As Integer, toPage As Integer, inverted As Boolean)
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).

bool inverted

Indicates whether the range should be inverted, see Inverted for details.

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)
Public Sub New(fromPage As Integer, toPage As Integer)
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.

Declaration
public OutputRange(int[] pageNumbers)
Public Sub New(pageNumbers As Integer())
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 commas;
  • dashes ('-') to specify intervals (a dash at the end implies infinity).
Declaration
public OutputRange(string pages)
Public Sub New(pages As String)
Parameters
Type Name Description
string pages

The pages to be included.

OutputRange(int[], bool)

Creates an instance of OutputRange that includes all pages with numbers specified in the list.

Declaration
public OutputRange(int[] pageNumbers, bool inverted)
Public Sub New(pageNumbers As Integer(), inverted As Boolean)
Parameters
Type Name Description
int[] pageNumbers

The array of page numbers to include.

bool inverted

Indicates whether the range should be inverted, see Inverted for details.

OutputRange(string, bool)

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

  • page numbers (1-based) separated by commas;
  • dashes ('-') to specify intervals (a dash at the end implies infinity).
Declaration
public OutputRange(string pages, bool inverted)
Public Sub New(pages As String, inverted As Boolean)
Parameters
Type Name Description
string pages

The pages to be included.

bool inverted

Indicates whether the range should be inverted, see Inverted for details.