PropertyGroupDescription.PropertyName 屬性

定義

取得或設定用來判斷項目所屬群組之屬性的名稱。

public:
 property System::String ^ PropertyName { System::String ^ get(); void set(System::String ^ value); };
public string PropertyName { get; set; }
member this.PropertyName : string with get, set
Public Property PropertyName As String

屬性值

預設值是 null

備註

PropertyGroupDescription 可讓您根據 PropertyName 建立隱含群組。 如果您只想要依屬性分組,您可以設定 PropertyName 屬性。 如果您想要變更最後用於群組的值,您可以使用 Converter 屬性來提供值轉換器。 例如,您可能想要根據名稱的第一個字母來群組專案。 PropertyName如果未設定屬性,專案本身會傳遞至值轉換器。 轉換器可能會傳回集合,這個集合表示項目可以出現在多個群組中。

您也可以定義應該如何使用 StringComparison 屬性進行字串比較。

適用於