Class Pager

Conveys information about the current page index, and helps iterating pages to display in a UI.

Inheritance
System.Object
Pager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public class Pager

Constructors

Pager()

Initializes a new instance of the Pager class. Default value for PageSize is 10.

Declaration
public Pager()

Properties

CurrentPageIndex

The current page index.

Declaration
public int CurrentPageIndex { get; set; }
Property Value
Type Description
System.Int32

PageSize

The number of items per page.

Declaration
public int PageSize { get; set; }
Property Value
Type Description
System.Int32

SkipCount

Calculated value, number of items skipped before the first is relevant.

Declaration
public int SkipCount { get; }
Property Value
Type Description
System.Int32

TotalItemsCount

The total number of items in the set.

Declaration
public int TotalItemsCount { get; set; }
Property Value
Type Description
System.Int32

TotalPageCount

Calculated value, the number of pages for this set of items based on number of items and page size.

Declaration
public int TotalPageCount { get; }
Property Value
Type Description
System.Int32

VisiblePages

Enumerates relevant pages depending on page size and current page index.

Declaration
public IEnumerable<PagerPosition> VisiblePages { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<PagerPosition>

En enumeration of pages that should be displayed.