IBindingListView 接口

定义

通过提供高级排序和筛选功能来扩展 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
派生
实现

注解

使用 @no__t 的接口时,可以将高级排序作为一组属性描述符方向来实现。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. @No__t-0 接口由 @no__t 1 类实现。The IBindingListView interface is implemented by the BindingSource class.

属性

AllowEdit

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

(继承自 IBindingList)
AllowNew

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

(继承自 IBindingList)
AllowRemove

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

(继承自 IBindingList)
Count

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

(继承自 ICollection)
Filter

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

IsFixedSize

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

(继承自 IList)
IsReadOnly

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

(继承自 IList)
IsSorted

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

(继承自 IBindingList)
IsSynchronized

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

(继承自 ICollection)
Item[Int32]

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

(继承自 IList)
SortDescriptions

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

SortDirection

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

(继承自 IBindingList)
SortProperty

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

(继承自 IBindingList)
SupportsAdvancedSorting

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

SupportsChangeNotification

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

(继承自 IBindingList)
SupportsFiltering

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

SupportsSearching

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

(继承自 IBindingList)
SupportsSorting

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

(继承自 IBindingList)
SyncRoot

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

(继承自 ICollection)

方法

Add(Object)

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

(继承自 IList)
AddIndex(PropertyDescriptor)

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

(继承自 IBindingList)
AddNew()

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

(继承自 IBindingList)
ApplySort(ListSortDescriptionCollection)

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

ApplySort(PropertyDescriptor, ListSortDirection)

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

(继承自 IBindingList)
Clear()

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

(继承自 IList)
Contains(Object)

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

(继承自 IList)
CopyTo(Array, Int32)

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

(继承自 ICollection)
Find(PropertyDescriptor, Object)

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

(继承自 IBindingList)
GetEnumerator()

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

(继承自 IEnumerable)
IndexOf(Object)

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

(继承自 IList)
Insert(Int32, Object)

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

(继承自 IList)
Remove(Object)

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

(继承自 IList)
RemoveAt(Int32)

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

(继承自 IList)
RemoveFilter()

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

RemoveIndex(PropertyDescriptor)

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

(继承自 IBindingList)
RemoveSort()

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

(继承自 IBindingList)

事件

ListChanged

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

(继承自 IBindingList)

扩展方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

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

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于