Interface IPagedCollectionView
Interface used to drive paging of collection views.
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public interface IPagedCollectionView
Properties
| Improve this Doc View SourceCanChangePage
Gets a value indicating whether the PageIndex value is allowed to change or not.
Declaration
bool CanChangePage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPageChanging
Gets a value indicating whether a page index change is in process or not.
Declaration
bool IsPageChanging { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemCount
Gets the number of known items in the view before paging is applied.
Declaration
int ItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PageIndex
Gets the current page we are on. (zero based)
Declaration
int PageIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PageSize
Gets or sets the number of items to display on a page.
Declaration
int PageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TotalItemCount
Gets the total number of items in the view before paging is applied, or -1 if that total number is unknown.
Declaration
int TotalItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceMoveToFirstPage()
Moves to the first page.
Declaration
bool MoveToFirstPage()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the move was successful. |
MoveToLastPage()
Moves to the last page.
Declaration
bool MoveToLastPage()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the move was successful. |
MoveToNextPage()
Moves to the page after the current page we are on.
Declaration
bool MoveToNextPage()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the move was successful. |
MoveToPage(Int32)
Moves to page pageIndex
.
Declaration
bool MoveToPage(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The index of the page to which to move. |
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the move was successful. |
MoveToPreviousPage()
Moves to the page before the current page we are on.
Declaration
bool MoveToPreviousPage()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the move was successful. |
Events
| Improve this Doc View SourcePageChanged
Raised when a page index change completed.
Declaration
event EventHandler<EventArgs> PageChanged
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |
PageChanging
Raised when a page index change is requested.
Declaration
event EventHandler<PageChangingEventArgs> PageChanging
Event Type
Type | Description |
---|---|
System.EventHandler<PageChangingEventArgs> |