MobileControl.OnPageChange(Int32, Int32) 方法

定义

对控件进行分页。Paginates a control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual void OnPageChange(int oldPageIndex, int newPageIndex);
protected virtual void OnPageChange (int oldPageIndex, int newPageIndex);
abstract member OnPageChange : int * int -> unit
override this.OnPageChange : int * int -> unit
Protected Overridable Sub OnPageChange (oldPageIndex As Integer, newPageIndex As Integer)

参数

oldPageIndex
Int32

包含分页之前的当前页的索引号。Contains the index number of the current page prior to pagination.

newPageIndex
Int32

包含当前页在分页后的索引号。Contains the index number of the current page after pagination.

注解

当控件的所有内容不能同时在浏览设备的屏幕上显示时,将调用此函数以对控件进行分页。When all the contents of a control cannot be displayed on the browsing device's screen at once, this function is called to paginate the control. 索引号从零开始。The index numbers are zero-based.

适用于

另请参阅