語言

PropertyGroupDescription 建構函式

定義

初始化 PropertyGroupDescription 類別的新執行個體。

多載

名稱 Description
PropertyGroupDescription()

初始化 PropertyGroupDescription 類別的新執行個體。

PropertyGroupDescription(String)

初始化一個帶有指定屬性名稱的 PropertyGroupDescription 類別新實例。

PropertyGroupDescription(String, IValueConverter)

初始化一個以指定屬性名稱與轉換器為基礎的類別新實例 PropertyGroupDescription 。

PropertyGroupDescription(String, IValueConverter, StringComparison)

初始化一個新的類別實例 PropertyGroupDescription ,並以指定參數進行。

PropertyGroupDescription()

初始化 PropertyGroupDescription 類別的新執行個體。

public:
 PropertyGroupDescription();
public PropertyGroupDescription();
Public Sub New ()

範例

以下範例說明如何使用此建構子。

// This groups the items in the view by the property "Category"
PropertyGroupDescription groupDescription = new PropertyGroupDescription();
groupDescription.PropertyName = "Category";
listingDataView.GroupDescriptions.Add(groupDescription);
'This groups by property "Category"
Dim groupDescription As PropertyGroupDescription = New PropertyGroupDescription
groupDescription.PropertyName = "Category"
listingDataView.GroupDescriptions.Add(groupDescription)

適用於

PropertyGroupDescription(String)

初始化一個帶有指定屬性名稱的 PropertyGroupDescription 類別新實例。

public:
 PropertyGroupDescription(System::String ^ propertyName);
public PropertyGroupDescription(string propertyName);
new System.Windows.Data.PropertyGroupDescription : string -> System.Windows.Data.PropertyGroupDescription
Public Sub New (propertyName As String)

參數

propertyName
String

指定物品屬於哪一組的性質名稱。

適用於

PropertyGroupDescription(String, IValueConverter)

初始化一個以指定屬性名稱與轉換器為基礎的類別新實例 PropertyGroupDescription 。

public:
 PropertyGroupDescription(System::String ^ propertyName, System::Windows::Data::IValueConverter ^ converter);
public PropertyGroupDescription(string propertyName, System.Windows.Data.IValueConverter converter);
new System.Windows.Data.PropertyGroupDescription : string * System.Windows.Data.IValueConverter -> System.Windows.Data.PropertyGroupDescription
Public Sub New (propertyName As String, converter As IValueConverter)

參數

propertyName
String

指定物品屬於哪一組的性質名稱。 若為 null,則該項目本身會傳遞給價值轉換器。

converter
IValueConverter

一個 IValueConverter 用來套用於屬性值的物件,或用來產生最終值的物件,用以判斷該物件屬於哪個群組。 轉換器可能會回傳一個集合,表示這些項目可以出現在多個群組中。

適用於

PropertyGroupDescription(String, IValueConverter, StringComparison)

初始化一個新的類別實例 PropertyGroupDescription ,並以指定參數進行。

public:
 PropertyGroupDescription(System::String ^ propertyName, System::Windows::Data::IValueConverter ^ converter, StringComparison stringComparison);
public PropertyGroupDescription(string propertyName, System.Windows.Data.IValueConverter converter, StringComparison stringComparison);
new System.Windows.Data.PropertyGroupDescription : string * System.Windows.Data.IValueConverter * StringComparison -> System.Windows.Data.PropertyGroupDescription
Public Sub New (propertyName As String, converter As IValueConverter, stringComparison As StringComparison)

參數

propertyName
String

指定物品屬於哪一組的性質名稱。 若為 null,則該項目本身會傳遞給價值轉換器。

converter
IValueConverter

一個 IValueConverter 用來套用於屬性值的物件,或用來產生最終值的物件,用以判斷該物件屬於哪個群組。 轉換器可能會回傳一個集合,表示這些項目可以出現在多個群組中。

stringComparison
StringComparison

一個 StringComparison 指定項目價值與群組名稱比較的值。

適用於