PagePropertiesChangingEventArgs 类

定义

PagePropertiesChanging 事件提供数据。Provides data for the PagePropertiesChanging event.

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

注解

ListView ListView.PagePropertiesChangingListView.SetPageProperties调用方法时, 控件都会引发事件。The ListView control raises the ListView.PagePropertiesChanging event whenever the ListView.SetPageProperties method is called. DataPager单击控件中与该ListView控件关联的按钮时, 将发生这种情况, 并且由ListView.StartRowIndex DataPager控件ListView.MaximumRows指定一个新的或值。This occurs when a button in a DataPager control that is associated with the ListView control is clicked, and a new ListView.StartRowIndex or ListView.MaximumRows value is specified by the DataPager control. 这使您可以在每次发生此事件时提供自定义例程, 如SelectedIndex清除EditIndex ListView控件的或属性。This enables you to provide a custom routine whenever this event occurs, such as clearing the SelectedIndex or EditIndex properties of the ListView control.

PagePropertiesChangingEventArgs对象传递到事件处理程序。A PagePropertiesChangingEventArgs object is passed to the event handler. 此对象可用于确定用户选择的页面中第一项的索引。This object enables you to determine the index of the first item in the page that was selected by the user. 您还可以确定要在每一页上显示的最大项数。You can also determine the maximum number of items to display on each page.

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

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

构造函数

PagePropertiesChangingEventArgs(Int32, Int32)

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

属性

MaximumRows

获取要在每个数据页上显示的最大项数。Gets the maximum number of items to display on each page of data.

StartRowIndex

获取页面的第一项的索引。Gets the index of the first item of the page.

方法

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)

适用于

另请参阅