Uredi

Deli z drugimi prek


PageRange Constructors

Definition

Initializes a new instance of the PageRange class.

Overloads

PageRange(Int32)

Initializes a new instance of the PageRange class that includes only the single specified page.

PageRange(Int32, Int32)

Initializes a new instance of the PageRange class with the specified first and last pages.

PageRange(Int32)

Initializes a new instance of the PageRange class that includes only the single specified page.

public:
 PageRange(int page);
public PageRange (int page);
new System.Windows.Controls.PageRange : int -> System.Windows.Controls.PageRange
Public Sub New (page As Integer)

Parameters

page
Int32

The page that is printed or processed.

Remarks

The page parameter value is 1-based; page number 1 is the first page.

See also

Applies to

PageRange(Int32, Int32)

Initializes a new instance of the PageRange class with the specified first and last pages.

public:
 PageRange(int pageFrom, int pageTo);
public PageRange (int pageFrom, int pageTo);
new System.Windows.Controls.PageRange : int * int -> System.Windows.Controls.PageRange
Public Sub New (pageFrom As Integer, pageTo As Integer)

Parameters

pageFrom
Int32

The first page of the range.

pageTo
Int32

The last page of the range.

Remarks

The pageFrom and PageTo parameter values are 1-based; page number 1 is the first page.

Since the range includes both the "from" and "to" pages, the total number of pages is "PageTo - PageFrom + 1".

See also

Applies to