C# 클래스 Candor.PagingOptions

파일 보기 프로젝트 열기: michael-lang/candor-common 1 사용 예제들

공개 메소드들

메소드 설명
GetDisabledPagingOptions ( ) : PagingOptions

Gets a set of PagingOptions with paging disabled.

GetItemCountForPage ( ) : int

Gets the number of items on the current page as determined by PageIndex. This will be the lesser of TotalItemCount minus the items on the previous pages and the PageSize; but no less than zero.

GetPagingByPage ( int page, int itemsPerPage ) : PagingOptions

Creates a new paging options based on a nullable page and page size.

GetTotalPageCount ( ) : int

Gets the total number of pages given the current paging details.

메소드 상세

GetDisabledPagingOptions() 공개 정적인 메소드

Gets a set of PagingOptions with paging disabled.
public static GetDisabledPagingOptions ( ) : PagingOptions
리턴 PagingOptions

GetItemCountForPage() 공개 메소드

Gets the number of items on the current page as determined by PageIndex. This will be the lesser of TotalItemCount minus the items on the previous pages and the PageSize; but no less than zero.
public GetItemCountForPage ( ) : int
리턴 int

GetPagingByPage() 공개 정적인 메소드

Creates a new paging options based on a nullable page and page size.
public static GetPagingByPage ( int page, int itemsPerPage ) : PagingOptions
page int Either null, or a 1 based page number (not page index)
itemsPerPage int Either null for the default, or the number of items for each page.
리턴 PagingOptions

GetTotalPageCount() 공개 메소드

Gets the total number of pages given the current paging details.
public GetTotalPageCount ( ) : int
리턴 int