ICollectionView 介面
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
讓集合擁有目前記錄管理、自訂排序、篩選和分組的功能。
public interface class ICollectionView : System::Collections::IEnumerable, System::Collections::Specialized::INotifyCollectionChanged
public interface ICollectionView : System.Collections.IEnumerable, System.Collections.Specialized.INotifyCollectionChanged
type ICollectionView = interface
interface IEnumerable
interface INotifyCollectionChanged
Public Interface ICollectionView
Implements IEnumerable, INotifyCollectionChanged
- 衍生
- 實作
介面是由 類別實作CollectionView,這是 、 ListCollectionView和 ItemCollection的BindingListCollectionView基類。
Can |
取得值,該值表示此檢視是否支援透過 Filter 屬性進行篩選的功能。 |
Can |
取得值,這個值表示此檢視是否支援透過 GroupDescriptions 屬性進行分組的功能。 |
Can |
取得值,這個值表示此檢視是否支援透過 SortDescriptions 屬性進行排序的功能。 |
Culture |
取得或設定文化資訊,描述此檢視依文化特性而異的任何作業,例如排序。 |
Current |
取得檢視中的目前項目。 |
Current |
取得 CurrentItem 在檢視中的序數位置。 |
Filter |
取得或設定回呼,這個回呼是用來判斷項目是否適合包含在檢視中。 |
Group |
取得 GroupDescription 物件的集合,這些物件會描述如何在檢視中分組集合內的項目。 |
Groups |
取得最上層群組。 |
Is |
取得值,這個值表示檢視的 CurrentItem 是否超過集合的結尾。 |
Is |
取得值,這個值表示檢視的 CurrentItem 是否超過集合的開頭。 |
Is |
傳回值,指出產生的檢視是否為空白。 |
Sort |
取得 SortDescription 物件的集合,說明集合內的項目如何在檢視中分組。 |
Source |
傳回基礎集合。 |
Contains(Object) |
傳回值,其中該值指出指定的項目是否屬於此集合檢視。 |
Defer |
進入延後循環,您可以用來合併變更到檢視,並且延遲自動重新整理。 |
Get |
傳回逐一查看集合的列舉值。 (繼承來源 IEnumerable) |
Move |
將指定項目設定為檢視中的 CurrentItem。 |
Move |
將檢視中的第一個項目設定為 CurrentItem。 |
Move |
將檢視中的最後一個項目設定為 CurrentItem。 |
Move |
將檢視中 CurrentItem 後面的項目設定為 CurrentItem。 |
Move |
將指定索引處的項目設定為檢視中的 CurrentItem。 |
Move |
將檢視中 CurrentItem 前面的項目設定為 CurrentItem。 |
Refresh() |
重新建立檢視。 |
Collection |
當集合變更時發生。 (繼承來源 INotifyCollectionChanged) |
Current |
實作這個介面時,在變更目前項目之後會引發這個事件。 |
Current |
實作這個介面時,在變更目前項目之前會引發這個事件。 事件處理常式可以取消這個事件。 |
Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
Of |
根據指定的型別來篩選 IEnumerable 的項目。 |
As |
啟用查詢的平行化作業。 |
As |
將 IEnumerable 轉換成 IQueryable。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |