IBindingList.IsSorted 属性

定义

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

public:
 property bool IsSorted { bool get(); };
public bool IsSorted { get; }
member this.IsSorted : bool
Public ReadOnly Property IsSorted As Boolean

属性值

如果已调用 true 并且未调用 ApplySort(PropertyDescriptor, ListSortDirection),则为 RemoveSort();否则为 falsetrue if ApplySort(PropertyDescriptor, ListSortDirection) has been called and RemoveSort() has not been called; otherwise, false.

例外

注解

如果 trueSupportsSorting,则支持此属性;否则,此属性将引发 NotSupportedExceptionThis property is supported if SupportsSorting is true; otherwise, this property throws a NotSupportedException.

如果 IsSorted 返回 true,则按排序顺序添加或移除项。If IsSorted returns true, items are added or removed in the order of the sort.

适用于