Share via


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 値。

適用対象