GroupDescription.CustomSort 屬性

定義

取得或設定自訂比較子,使用實作 IComparer 的物件來排序群組。Gets or sets a custom comparer that sorts groups using an object that implements IComparer.

public:
 property System::Collections::IComparer ^ CustomSort { System::Collections::IComparer ^ get(); void set(System::Collections::IComparer ^ value); };
public System.Collections.IComparer CustomSort { get; set; }
member this.CustomSort : System.Collections.IComparer with get, set
Public Property CustomSort As IComparer

屬性值

IComparer

自訂比較子,使用實作 IComparer 的物件來排序群組。A custom comparer that sorts groups using an object that implements IComparer.

備註

注意

設定自訂比較子物件將會清除先前設定的值 SortDescriptionsSetting the custom comparer object will clear previously set SortDescriptions.

適用於