GroupDescription 類別

定義

為描述如何將集合中的項目分組的類型,提供抽象基底類別。Provides an abstract base class for types that describe how to divide the items in a collection into groups.

public ref class GroupDescription abstract : System::ComponentModel::INotifyPropertyChanged
public abstract class GroupDescription : System.ComponentModel.INotifyPropertyChanged
type GroupDescription = class
    interface INotifyPropertyChanged
Public MustInherit Class GroupDescription
Implements INotifyPropertyChanged
繼承
GroupDescription
衍生
實作

建構函式

GroupDescription()

初始化 GroupDescription 類別的新執行個體。Initializes a new instance of the GroupDescription class.

屬性

CustomSort

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

GroupNames

取得名稱集合,這些名稱用來初始化有一組具指定名稱之子群組的群組。Gets the collection of names that are used to initialize a group with a set of subgroups with the given names.

SortDescriptions

取得用以排序群組的排序準則集合。Gets the collection of sort criteria in which to sort the groups.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GroupNameFromItem(Object, Int32, CultureInfo)

傳回指定項目的群組名稱。Returns the group name(s) for the given item.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
NamesMatch(Object, Object)

傳回值,指出群組名稱和項目名稱是否相符,以便讓項目歸屬於群組。Returns a value that indicates whether the group name and the item name match such that the item belongs to the group.

OnPropertyChanged(PropertyChangedEventArgs)

引發 PropertyChanged 事件。Raises the PropertyChanged event.

ShouldSerializeGroupNames()

傳回序列化程序是否應序列化這個類別執行個體上 GroupNames 屬性的有效值。Returns whether serialization processes should serialize the effective value of the GroupNames property on instances of this class.

ShouldSerializeSortDescriptions()

傳回序列化程序是否應序列化這個類別執行個體上 SortDescriptions 屬性的有效值。Returns whether serialization processes should serialize the effective value of the SortDescriptions property on instances of this class.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

PropertyChanged

當屬性值變更時發生。Occurs when a property value changes.

明確介面實作

INotifyPropertyChanged.PropertyChanged

當屬性值變更時發生。Occurs when a property value changes.

適用於