ItemPager 类

定义

注意

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

帮助对窗体进行分页。Assists in paginating a form. 若要了解如何开发 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.

public ref class ItemPager
public class ItemPager
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class ItemPager
type ItemPager = class
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ItemPager = class
Public Class ItemPager
继承
ItemPager
属性

注解

对于支持内部分页的每个控件, ItemPager 将创建一个对象并将其用于对控件的内容进行分页。For each control that supports internal pagination, an ItemPager object is created and used to paginate the contents of the control.

此类用于 PagedControl 具有长文本长度的控件的类,如 ListControlLiteralTextObjectListThis class is used with the PagedControl class for controls that have long text length, such as a ListControl, LiteralText, or ObjectList.

通常,你不会继承和修改此类,除非你想要创建自己的自定义分页。Normally, you would not inherit and modify this class unless you want to create your own customized pagination. 通常,您可以从类继承, PagedControl 并扩展您自己的自定义属性和方法。More typically, you would inherit from the PagedControl class and extend your own customized properties and methods.

构造函数

ItemPager()

初始化 ItemPager 类的新实例。Initializes a new instance of the ItemPager class. 此 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.

ItemPager(ControlPager, MobileControl, Int32, Int32, Int32)

初始化 ItemPager 类的新实例。Initializes a new instance of the ItemPager class. 此 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.

属性

ItemCount

获取当前页上可见项的计数。Gets the count of items visible on the current page. 此 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.

ItemIndex

获取当前页上第一个可见项的索引。Gets the index of the first visible item on the current page. 如果没有可见项,则返回值 -1。Returns a value of -1 if no items are visible. 此 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.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅