PropertyGroupDescription 构造函数

定义

初始化 PropertyGroupDescription 类的新实例。

重载

名称 说明
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 值,该值指定项的值与组的名称之间的比较。

适用于