Table of Contents

Method GetIndexOnPreviousPage

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetIndexOnPreviousPage(int?)

Gets the index of the first item on the previous page relative to the specified index.

protected virtual int? GetIndexOnPreviousPage(int? index = null)

Parameters

index int?

The starting index to calculate the previous page from. If null, the current selected index is used.

Returns

int?

The zero-based index of the first item on the previous page, or 0 if the list is empty or the index is null.