ListViewPagedDataSource Klasa
Definicja
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
- Dziedziczenie
-
ListViewPagedDataSource
- Implementuje
Uwagi
ListViewPagedDataSourceKlasa hermetyzuje właściwości, które umożliwiają ListView formantowi wykonywanie stronicowania.The ListViewPagedDataSource class encapsulates the properties that enable the ListView control to perform paging.
Ta klasa używa najlepszej dostępnej metody do wyliczania skojarzonych danych.This class uses the best available method to enumerate the associated data. Jeśli bazowe źródło danych obsługuje indeksowany dostęp (na przykład System.Array obiekty i System.Collections.IList ), Klasa używa tego dostępu.If the underlying data source supports indexed access (such as System.Array and System.Collections.IList objects), the class uses that access. W przeciwnym razie Klasa używa modułu wyliczającego, który jest tworzony przez GetEnumerator metodę.Otherwise, the class uses the enumerator that is created by the GetEnumerator method.
Aby uzyskać listę początkowych wartości właściwości dla wystąpienia ListViewPagedDataSource klasy, zobacz ListViewPagedDataSource Konstruktor.For a list of initial property values for an instance of the ListViewPagedDataSource class, see the ListViewPagedDataSource constructor.
Konstruktory
ListViewPagedDataSource() |
Inicjuje nowe wystąpienie klasy ListViewPagedDataSource.Initializes a new instance of the ListViewPagedDataSource class. |
Właściwości
AllowServerPaging |
Pobiera lub ustawia wartość wskazującą, czy jest włączone stronicowanie oparte na serwerze.Gets or sets a value that indicates whether server-based paging is enabled. |
Count |
Pobiera liczbę elementów, które będą używane ze źródła danych dla bieżącej strony.Gets the number of items that will be used from the data source for the current page. |
DataSource |
Pobiera lub ustawia źródło danych.Gets or sets the data source. |
DataSourceCount |
Pobiera liczbę elementów w źródle danych.Gets the number of items in the data source. |
IsReadOnly |
Pobiera wartość wskazującą, czy ListViewPagedDataSource obiekt jest tylko do odczytu.Gets a value that indicates whether the ListViewPagedDataSource object is read-only. |
IsServerPagingEnabled |
Pobiera wartość wskazującą, czy jest włączone stronicowanie oparte na serwerze.Gets a value that indicates whether server-based paging is enabled. |
IsSynchronized |
Pobiera wartość wskazującą, czy dostęp do źródła danych jest synchronizowany (bezpieczny wątkowo).Gets a value that indicates whether access to the data source is synchronized (thread-safe). |
MaximumRows |
Pobiera lub ustawia maksymalną liczbę elementów do wyświetlenia na jednej stronie.Gets or sets the maximum number of items to display on a single page. |
StartRowIndex |
Pobiera lub ustawia indeks pierwszego rekordu wyświetlanego na stronie.Gets or sets the index of the first record displayed on the page. |
SyncRoot |
Pobiera obiekt, który może służyć do synchronizowania dostępu do kolekcji.Gets an object that can be used to synchronize access to the collection. |
TotalRowCount |
Pobiera lub ustawia łączną liczbę elementów w źródle danych, gdy jest używane stronicowanie oparte na serwerze.Gets or sets the total number of items in the data source when server-based paging is being used. |
Metody
CopyTo(Array, Int32) |
Kopiuje wszystkie elementy ze źródła danych do określonego Array obiektu, rozpoczynając od określonego indeksu w Array .Copies all the items from the data source to the specified Array object, starting at the specified index in Array. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetEnumerator() |
Zwraca obiekt, który implementuje IEnumerator i który zawiera wszystkie elementy w źródle danych.Returns an object that implements IEnumerator and that contains all items in the data source. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetItemProperties(PropertyDescriptor[]) |
Zwraca PropertyDescriptorCollection obiekt, który reprezentuje właściwości, które są używane do wiązania danych.Returns a PropertyDescriptorCollection object that represents the properties that are used to bind data. |
GetListName(PropertyDescriptor[]) |
Zwraca nazwę listy.Returns the name of the list. Ta metoda nie ma zastosowania do tej klasy.This method does not apply to this class. |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Metody rozszerzania
Cast<TResult>(IEnumerable) |
Rzutuje elementy elementu IEnumerable do określonego typu.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtruje elementy IEnumerable w oparciu o określony typ.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Włącza przetwarzanie równoległe zapytania.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Konwertuje IEnumerable do IQueryable .Converts an IEnumerable to an IQueryable. |