IBindingList.IsSorted 屬性

定義

取得值,指出清單中項目是否已排序。

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,否則為 false

例外狀況

備註

如果 為 SupportsSortingtrue,則支援這個屬性,否則這個屬性會 NotSupportedException擲回 。

如果 IsSortedtrue回 ,則會依排序順序加入或移除專案。

適用於