C# Class EPiUtilities.Filters.PagerFilter

A filter which filters the collection to only contain the pages in a given page given a page size and page number.
Inheritance: IPageFilter
Mostra file Open project: JohannesOstensjo/EPiUtilities

Public Methods

Method Description
Filter ( PageDataCollection pages ) : void

Filters the collection, leaving only the pages which correspond to the given page number and size.

Filter ( object sender, FilterEventArgs e ) : void

Event handler that calls the filter in this filter class.

PagerFilter ( int pageSize, int pageNumber ) : System

Creates a filter which filters a PageDataCollection for a pager given the size and number of the page. pageNumber must be 1 or larger, it is not zero based.

ShouldFilter ( System.PageData page ) : bool

Not implemented, as this filter only applies to collection contexts.

Method Details

Filter() public method

Filters the collection, leaving only the pages which correspond to the given page number and size.
public Filter ( PageDataCollection pages ) : void
pages PageDataCollection
return void

Filter() public method

Event handler that calls the filter in this filter class.
public Filter ( object sender, FilterEventArgs e ) : void
sender object
e FilterEventArgs
return void

PagerFilter() public method

Creates a filter which filters a PageDataCollection for a pager given the size and number of the page. pageNumber must be 1 or larger, it is not zero based.
public PagerFilter ( int pageSize, int pageNumber ) : System
pageSize int
pageNumber int
return System

ShouldFilter() public method

Not implemented, as this filter only applies to collection contexts.
public ShouldFilter ( System.PageData page ) : bool
page System.PageData
return bool