ListView.MaximumRows 属性

定义

获取要在 ListView 控件的单个页上显示的最大项数。Gets the maximum number of items to display on a single page of the ListView control.

protected:
 virtual property int MaximumRows { int get(); };
protected virtual int MaximumRows { get; }
member this.MaximumRows : int
Protected Overridable ReadOnly Property MaximumRows As Integer

属性值

Int32

要在 ListView 控件的单个页上显示的最大项数。The maximum number of items to display on a single page of the ListView control.

注解

如果 DataPager 对象与控件相关联 ListView ,则 MaximumRows 属性值由 DataPager 对象控制,它与 PageSize 属性值相同。If a DataPager object is associated with the ListView control, the MaximumRows property value is controlled by the DataPager object, and it is same as the PageSize property value. 否则,该值为-1。Otherwise, the value is -1.

适用于