Class PaginationHelper
Provides helper methods for pagination operations.
Inheritance
object
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public static class PaginationHelper
Methods
View SourceConvertSkipTakeToPaging(int, int, out long, out int)
Converts skip/take values to page number and page size.
Declaration
public static void ConvertSkipTakeToPaging(int skip, int take, out long pageNumber, out int pageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | skip | The number of items to skip. |
| int | take | The number of items to take (page size). |
| long | pageNumber | When this method returns, contains the calculated page number (zero-based). |
| int | pageSize | When this method returns, contains the page size. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Skip is not a multiple of take. |