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

属性值

Boolean

如果列表已排序,则为 true;否则为 falsetrue if the list is sorted; otherwise, false. 默认值为 falseThe 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:

此外,您可能还需要实现补充 SortDirectionCoreSortPropertyCore 排序属性。In addition, you may want to implement the supplemental SortDirectionCore and SortPropertyCores sorting properties.

适用于