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

属性值

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

异常

注解

如果SupportsSortingtrue ,则支持此属性;否则,此NotSupportedException属性将引发。This 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.

适用于