IBindingListView IBindingListView IBindingListView IBindingListView Interface

定义

通过提供高级排序和筛选功能来扩展 IBindingList 接口。Extends the IBindingList interface by providing advanced sorting and filtering capabilities.

public interface class IBindingListView : System::Collections::IList, System::ComponentModel::IBindingList
public interface IBindingListView : System.Collections.IList, System.ComponentModel.IBindingList
type IBindingListView = interface
    interface IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
Public Interface IBindingListView
Implements IBindingList, IList
派生
实现

注解

IBindingListView使用接口, 可以将高级排序实现为一组属性说明符-方向对。With the IBindingListView interface, you implement advanced sorting as a set of property descriptor-direction pairs. 将筛选作为要由数据源实现解释的字符串进行实现。You implement filtering as a string to be interpreted by the data source implementation. IBindingListView 接口BindingSource由类实现。The IBindingListView interface is implemented by the BindingSource class.

属性

AllowEdit AllowEdit AllowEdit AllowEdit

获取是否可更新列表中的项。Gets whether you can update items in the list.

(Inherited from IBindingList)
AllowNew AllowNew AllowNew AllowNew

获取是否可以使用 AddNew() 向列表中添加项。Gets whether you can add items to the list using AddNew().

(Inherited from IBindingList)
AllowRemove AllowRemove AllowRemove AllowRemove

获取是否可以使用 Remove(Object)RemoveAt(Int32) 从列表中移除项。Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).

(Inherited from IBindingList)
Count Count Count Count

获取 ICollection 中包含的元素数。Gets the number of elements contained in the ICollection.

(Inherited from ICollection)
Filter Filter Filter Filter

获取或设置筛选器,以用于从数据源返回的项的集合中排除项。Gets or sets the filter to be used to exclude items from the collection of items returned by the data source

IsFixedSize IsFixedSize IsFixedSize IsFixedSize

获取一个值,该值指示 IList 是否具有固定大小。Gets a value indicating whether the IList has a fixed size.

(Inherited from IList)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示 IList 是否为只读。Gets a value indicating whether the IList is read-only.

(Inherited from IList)
IsSorted IsSorted IsSorted IsSorted

获取是否对列表中的项进行排序。Gets whether the items in the list are sorted.

(Inherited from IBindingList)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(Inherited from ICollection)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

(Inherited from IList)
SortDescriptions SortDescriptions SortDescriptions SortDescriptions

获取当前应用于数据源的排序说明的集合。Gets the collection of sort descriptions currently applied to the data source.

SortDirection SortDirection SortDirection SortDirection

获取排序的方向。Gets the direction of the sort.

(Inherited from IBindingList)
SortProperty SortProperty SortProperty SortProperty

获取正在用于排序的 PropertyDescriptorGets the PropertyDescriptor that is being used for sorting.

(Inherited from IBindingList)
SupportsAdvancedSorting SupportsAdvancedSorting SupportsAdvancedSorting SupportsAdvancedSorting

获取一个值,指示数据源是否支持高级排序。Gets a value indicating whether the data source supports advanced sorting.

SupportsChangeNotification SupportsChangeNotification SupportsChangeNotification SupportsChangeNotification

获取当列表更改或列表中的项更改时是否引发 ListChanged 事件。Gets whether a ListChanged event is raised when the list changes or an item in the list changes.

(Inherited from IBindingList)
SupportsFiltering SupportsFiltering SupportsFiltering SupportsFiltering

获取一个值,该值指示数据源是否支持筛选。Gets a value indicating whether the data source supports filtering.

SupportsSearching SupportsSearching SupportsSearching SupportsSearching

获取列表是否支持使用 Find(PropertyDescriptor, Object) 方法进行搜索。Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.

(Inherited from IBindingList)
SupportsSorting SupportsSorting SupportsSorting SupportsSorting

获取列表是否支持排序。Gets whether the list supports sorting.

(Inherited from IBindingList)
SyncRoot SyncRoot SyncRoot SyncRoot

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

(Inherited from ICollection)

方法

Add(Object) Add(Object) Add(Object) Add(Object)

将某项添加到 IList 中。Adds an item to the IList.

(Inherited from IList)
AddIndex(PropertyDescriptor) AddIndex(PropertyDescriptor) AddIndex(PropertyDescriptor) AddIndex(PropertyDescriptor)

PropertyDescriptor 添加到用于搜索的索引。Adds the PropertyDescriptor to the indexes used for searching.

(Inherited from IBindingList)
AddNew() AddNew() AddNew() AddNew()

将新项添加到列表。Adds a new item to the list.

(Inherited from IBindingList)
ApplySort(ListSortDescriptionCollection) ApplySort(ListSortDescriptionCollection) ApplySort(ListSortDescriptionCollection) ApplySort(ListSortDescriptionCollection)

根据给定的 ListSortDescriptionCollection 对数据源进行排序。Sorts the data source based on the given ListSortDescriptionCollection.

ApplySort(PropertyDescriptor, ListSortDirection) ApplySort(PropertyDescriptor, ListSortDirection) ApplySort(PropertyDescriptor, ListSortDirection) ApplySort(PropertyDescriptor, ListSortDirection)

根据 PropertyDescriptorListSortDirection 对列表进行排序。Sorts the list based on a PropertyDescriptor and a ListSortDirection.

(Inherited from IBindingList)
Clear() Clear() Clear() Clear()

IList 中移除所有项。Removes all items from the IList.

(Inherited from IList)
Contains(Object) Contains(Object) Contains(Object) Contains(Object)

确定 IList 是否包含特定值。Determines whether the IList contains a specific value.

(Inherited from IList)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

(Inherited from ICollection)
Find(PropertyDescriptor, Object) Find(PropertyDescriptor, Object) Find(PropertyDescriptor, Object) Find(PropertyDescriptor, Object)

返回具有给定 PropertyDescriptor 的行的索引。Returns the index of the row that has the given PropertyDescriptor.

(Inherited from IBindingList)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
IndexOf(Object) IndexOf(Object) IndexOf(Object) IndexOf(Object)

确定 IList 中特定项的索引。Determines the index of a specific item in the IList.

(Inherited from IList)
Insert(Int32, Object) Insert(Int32, Object) Insert(Int32, Object) Insert(Int32, Object)

IList 中的指定索引处插入一个项。Inserts an item to the IList at the specified index.

(Inherited from IList)
Remove(Object) Remove(Object) Remove(Object) Remove(Object)

IList 中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the IList.

(Inherited from IList)
RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

移除位于指定索引处的 IList 项。Removes the IList item at the specified index.

(Inherited from IList)
RemoveFilter() RemoveFilter() RemoveFilter() RemoveFilter()

移除应用于数据源的当前筛选器。Removes the current filter applied to the data source.

RemoveIndex(PropertyDescriptor) RemoveIndex(PropertyDescriptor) RemoveIndex(PropertyDescriptor) RemoveIndex(PropertyDescriptor)

PropertyDescriptor 从用于搜索的索引中移除。Removes the PropertyDescriptor from the indexes used for searching.

(Inherited from IBindingList)
RemoveSort() RemoveSort() RemoveSort() RemoveSort()

使用 ApplySort(PropertyDescriptor, ListSortDirection) 移除任何已应用的排序。Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).

(Inherited from IBindingList)

事件

ListChanged ListChanged ListChanged ListChanged

当列表更改或列表中的项更改时发生。Occurs when the list changes or an item in the list changes.

(Inherited from IBindingList)

扩展方法

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.

适用于