C# Класс Candor.PagingOptions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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