IBindingList.IsSorted Property

Definition

取得值,指出清單中項目是否已排序。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

Property Value

Boolean

如果已呼叫 ApplySort(PropertyDescriptor, ListSortDirection) 而尚未呼叫 RemoveSort(),則為 true,否則為 falsetrue if ApplySort(PropertyDescriptor, ListSortDirection) has been called and RemoveSort() has not been called; otherwise, false.

Exceptions

Remarks

如果 SupportsSortingtrue,則支援此屬性。否則,這個屬性會擲回 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.

Applies to