BindingList<T>.IsSortedCore 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出清單是否為排序。
protected:
virtual property bool IsSortedCore { bool get(); };
protected virtual bool IsSortedCore { get; }
member this.IsSortedCore : bool
Protected Overridable ReadOnly Property IsSortedCore As Boolean
屬性值
如果清單已排序,則為 true
,否則為 false
。 預設為 false
。
備註
類別 BindingList<T> 不提供排序的基底實作,因此 IsSortedCore 一律預設會 false
傳回 。
類別 BindingList<T> 不提供排序的基底實作。 若要啟用排序,請從 BindingList<T> 和 衍生類別:
覆寫 ApplySortCore 並實作排序完成時引發 ListChanged 事件的排序。
覆寫 RemoveSortCore 並實作排序移除。
覆寫 SupportsSortingCore 並設定 SupportsSortingCore 為
true
。
此外,您可能想要實作補充 SortDirectionCore 和 SortPropertyCore排序屬性。