PageEventArgs 类

定义

为实现 TotalRowCountAvailable 接口的类的 IPageableItemContainer 事件提供数据。Provides data for the TotalRowCountAvailable event of a class that implements the IPageableItemContainer interface.

public ref class PageEventArgs : EventArgs
public class PageEventArgs : EventArgs
type PageEventArgs = class
    inherit EventArgs
Public Class PageEventArgs
Inherits EventArgs
继承
PageEventArgs

注解

当控件获取了TotalRowCountAvailable基础数据源对象的总记录数时,对象会引发事件。ListViewThe ListView object raises the TotalRowCountAvailable event when the control has obtained the total number of records of the underlying data source object. 控件为此事件提供名为OnTotalRowCountAvailable的事件处理程序。 DataPagerThe DataPager control provides an event handler for this event named OnTotalRowCountAvailable. 此事件处理程序可初始化与页相关的属性DataPagerField , 并创建DataPager.Fields集合中定义的对象。This event handler initializes page-related properties and creates the DataPagerField objects that are defined in the DataPager.Fields collection.

备注

TotalRowCountAvailable事件主要由控件开发人员使用。The TotalRowCountAvailable event is primarily used by control developers.

有关如何处理事件的详细信息, 请参阅处理和引发事件For more information about how to handle events, see Handling and Raising Events.

有关 PageEventArgs 类的实例的初始属性值列表,请参见 PageEventArgs 构造函数。For a list of initial property values for an instance of the PageEventArgs class, see the PageEventArgs constructor.

构造函数

PageEventArgs(Int32, Int32, Int32)

初始化 PageEventArgs 类的新实例。Initializes a new instance of the PageEventArgs class.

属性

MaximumRows

获取要在每页上显示的最大记录数。Gets the maximum number of records to display on each page.

StartRowIndex

获取页面上的第一条记录的索引。Gets the index of the first record on a page.

TotalRowCount

获取基础数据源中的总记录数。Gets the total number of records in the underlying data source.

方法

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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅