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;否则为 falsetrue if the list is sorted; otherwise, false. 默认值为 falseThe default is false.

注解

BindingList<T> 类不提供排序的基实现,因此 IsSortedCore 默认情况下始终返回 falseThe 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.

适用于