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.

例外狀況

備註

如果SupportsSorting為, true則支援這個屬性; 否則NotSupportedException, 這個屬性會擲回。This property is supported if SupportsSorting is true; otherwise, this property throws a NotSupportedException.

如果IsSorted傳回,則會依排序次序加入或移除專案。trueIf IsSorted returns true, items are added or removed in the order of the sort.

適用於