IBindingListView 介面

定義

透過提供進階的排序與篩選功能,擴展 IBindingList 了介面。

public interface class IBindingListView : System::Collections::IList, System::ComponentModel::IBindingList
public interface class IBindingListView : System::ComponentModel::IBindingList
public interface IBindingListView : System.Collections.IList, System.ComponentModel.IBindingList
public interface IBindingListView : System.ComponentModel.IBindingList
type IBindingListView = interface
    interface IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
type IBindingListView = interface
    interface ICollection
    interface IEnumerable
    interface IList
    interface IBindingList
Public Interface IBindingListView
Implements IBindingList, IList
Public Interface IBindingListView
Implements IBindingList
衍生
實作

備註

透過介面 IBindingListView ,你可以將進階排序實作為一組屬性描述符-方向對。 你把過濾實作成一個字串,讓資料來源實作來解讀。 介面 IBindingListViewBindingSource 類別實作。

屬性

名稱 Description
AllowEdit

判斷你是否能更新清單中的項目。

(繼承來源 IBindingList)
AllowNew

判斷你是否可以用 來將項目加入清單 AddNew()

(繼承來源 IBindingList)
AllowRemove

判斷你是否能從列表中移除項目,使用 Remove(Object)RemoveAt(Int32)

(繼承來源 IBindingList)
Count

得到包含於 的 ICollection元素數量。

(繼承來源 ICollection)
Filter

取得或設定過濾器,用以排除資料來源回傳項目集合中的項目。

IsFixedSize

會得到一個值,表示 是否 IList 具有固定大小。

(繼承來源 IList)
IsReadOnly

取得值,指出 IList 是否為唯讀。

(繼承來源 IList)
IsSorted

查詢清單中的項目是否已排序。

(繼承來源 IBindingList)
IsSynchronized

取得值,指出是否同步存取 ICollection (線程安全)。

(繼承來源 ICollection)
Item[Int32]

取得或設定位於指定索引處的專案。

(繼承來源 IList)
SortDescriptions

取得目前套用到資料來源的各種描述集合。

SortDirection

掌握了這類的方向。

(繼承來源 IBindingList)
SortProperty

PropertyDescriptor 是用來分類的。

(繼承來源 IBindingList)
SupportsAdvancedSorting

會取得一個值,表示資料來源是否支援進階排序。

SupportsChangeNotification

判斷當清單變更或列表中項目變動時,事件是否 ListChanged 被觸發。

(繼承來源 IBindingList)
SupportsFiltering

會獲得一個值,表示資料來源是否支援過濾。

SupportsSearching

判斷清單是否支援使用該 Find(PropertyDescriptor, Object) 方法搜尋。

(繼承來源 IBindingList)
SupportsSorting

想知道清單是否支援排序。

(繼承來源 IBindingList)
SyncRoot

取得一個物件,可用來同步存取 ICollection

(繼承來源 ICollection)

方法

名稱 Description
Add(Object)

將一個項目加入 IList

(繼承來源 IList)
AddIndex(PropertyDescriptor)

將 加入 PropertyDescriptor 用於搜尋的索引中。

(繼承來源 IBindingList)
AddNew()

新增一項物品到清單中。

(繼承來源 IBindingList)
ApplySort(ListSortDescriptionCollection)

根據給定 ListSortDescriptionCollection的 來排序資料來源。

ApplySort(PropertyDescriptor, ListSortDirection)

根據 a PropertyDescriptor 和 a ListSortDirection來排序清單。

(繼承來源 IBindingList)
Clear()

移除所有項目。IList

(繼承來源 IList)
Contains(Object)

判斷是否 IList 包含特定值。

(繼承來源 IList)
CopyTo(Array, Int32)

從特定 ICollection 索引開始,將 Array 的專案複製到 Array

(繼承來源 ICollection)
Find(PropertyDescriptor, Object)

回傳給定 PropertyDescriptor的列索引。

(繼承來源 IBindingList)
GetEnumerator()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerable)
IndexOf(Object)

決定特定項目的 IList索引。

(繼承來源 IList)
Insert(Int32, Object)

在指定的索引處插入一個項目 IList

(繼承來源 IList)
Remove(Object)

移除特定物件 IList首次出現的 。

(繼承來源 IList)
RemoveAt(Int32)

移除 IList 指定索引的項目。

(繼承來源 IList)
RemoveFilter()

移除對資料來源施加的當前過濾器。

RemoveIndex(PropertyDescriptor)

將 從用於搜尋的索引中移除。PropertyDescriptor

(繼承來源 IBindingList)
RemoveSort()

移除任何使用 ApplySort(PropertyDescriptor, ListSortDirection)

(繼承來源 IBindingList)

事件

名稱 Description
ListChanged

當清單變更或清單中的項目改變時,會發生這種情況。

(繼承來源 IBindingList)

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於