PageRange Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기