BindingList<T>.IsSortedCore 属性
定义
获取一个值,指示列表是否已排序。Gets a value indicating whether the list is sorted.
protected:
virtual property bool IsSortedCore { bool get(); };
protected virtual bool IsSortedCore { get; }
member this.IsSortedCore : bool
Protected Overridable ReadOnly Property IsSortedCore As Boolean
属性值
如果列表已排序,则为 true;否则为 false。true if the list is sorted; otherwise, false. 默认值为 false。The default is false.
注解
BindingList<T>类不提供排序的基实现,因此 IsSortedCore false 默认情况下总是返回。The BindingList<T> class does not provide a base implementation of sorting, so IsSortedCore always returns false by default.
BindingList<T>类不提供排序的基实现。The BindingList<T> class does not provide a base implementation of sorting. 若要启用排序,请从和中派生一个类 BindingList<T> :To enable sorting, derive a class from BindingList<T> and:
重写 ApplySortCore 并实现排序 ListChanged 完成后引发事件的排序。Override ApplySortCore and implement sorting raising the ListChanged event when sorting is complete.
重写 RemoveSortCore 并实现排序删除。Override RemoveSortCore and implement sort removal.
重写 SupportsSortingCore 并将设置 SupportsSortingCore 为
true。Override SupportsSortingCore and set SupportsSortingCore totrue.
此外,您可能还需要实现补充 SortDirectionCore 和 SortPropertyCore 排序属性。In addition, you may want to implement the supplemental SortDirectionCore and SortPropertyCores sorting properties.