ListViewPagedDataSource ListViewPagedDataSource ListViewPagedDataSource ListViewPagedDataSource Class


封装 ListView 控件的与分页相关的属性。Encapsulates the paging-related properties of a ListView control.

public ref class ListViewPagedDataSource : System::Collections::ICollection, System::ComponentModel::ITypedList
public class ListViewPagedDataSource : System.Collections.ICollection, System.ComponentModel.ITypedList
type ListViewPagedDataSource = class
    interface ICollection
    interface IEnumerable
    interface ITypedList
Public Class ListViewPagedDataSource
Implements ICollection, ITypedList


ListViewPagedDataSource类封装ListView使控件能够执行分页的属性。The ListViewPagedDataSource class encapsulates the properties that enable the ListView control to perform paging.

此类使用最佳的可用方法来枚举关联的数据。This class uses the best available method to enumerate the associated data. 如果基础数据源支持索引访问 (如System.ArraySystem.Collections.IList对象), 类将使用该访问权限。If the underlying data source supports indexed access (such as System.Array and System.Collections.IList objects), the class uses that access. 否则, 类将使用由GetEnumerator方法创建的枚举器。Otherwise, the class uses the enumerator that is created by the GetEnumerator method.

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


ListViewPagedDataSource() ListViewPagedDataSource() ListViewPagedDataSource() ListViewPagedDataSource()

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


AllowServerPaging AllowServerPaging AllowServerPaging AllowServerPaging

获取或设置一个值,该值指示是否已启用基于服务器的分页。Gets or sets a value that indicates whether server-based paging is enabled.

Count Count Count Count

获取要从数据源使用的当前页的项数。Gets the number of items that will be used from the data source for the current page.

DataSource DataSource DataSource DataSource

获取或设置数据源。Gets or sets the data source.

DataSourceCount DataSourceCount DataSourceCount DataSourceCount

获取数据源中的项数。Gets the number of items in the data source.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示 ListViewPagedDataSource 对象是否为只读。Gets a value that indicates whether the ListViewPagedDataSource object is read-only.

IsServerPagingEnabled IsServerPagingEnabled IsServerPagingEnabled IsServerPagingEnabled

获取一个值,该值指示是否已启用基于服务器的分页。Gets a value that indicates whether server-based paging is enabled.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示是否同步对数据源的访问(线程安全)。Gets a value that indicates whether access to the data source is synchronized (thread-safe).

MaximumRows MaximumRows MaximumRows MaximumRows

获取或设置要在单页上显示的最大项数。Gets or sets the maximum number of items to display on a single page.

StartRowIndex StartRowIndex StartRowIndex StartRowIndex

获取或设置页面中显示的首条记录的索引。Gets or sets the index of the first record displayed on the page.

SyncRoot SyncRoot SyncRoot SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

TotalRowCount TotalRowCount TotalRowCount TotalRowCount

获取或设置使用基于服务器的分页时数据源中的总项数。Gets or sets the total number of items in the data source when server-based paging is being used.


CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Array 中的指定索引位置开始,将数据源中的所有项复制到指定的 Array对象。Copies all the items from the data source to the specified Array object, starting at the specified index in Array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回一个实现 IEnumerator 的对象,该对象包含数据源中的所有项。Returns an object that implements IEnumerator and that contains all items in the data source.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[])

返回一个 PropertyDescriptorCollection 对象,它表示用于绑定数据的属性。Returns a PropertyDescriptorCollection object that represents the properties that are used to bind data.

GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[])

返回列表名称。Returns the name of the list. 此方法不适用于此类。This method does not apply to this class.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)


Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.