ContentPresenter.ContentStringFormat 屬性

定義

取得或設定複合字串,這個字串會指定在 Content 屬性顯示為字串的情況下,如何格式化這個屬性。

public:
 property System::String ^ ContentStringFormat { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string ContentStringFormat { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.ContentStringFormat : string with get, set
Public Property ContentStringFormat As String

屬性值

String

複合字串,指定在 Content 屬性顯示為字串的情況下,如何格式化這個屬性。 預設為 null

屬性

備註

ContentStringFormat 可以是預先定義的、複合或自訂字串格式。 如需字串格式的詳細資訊,請參閱 格式化類型。 如果您設定 ContentTemplateContentPresenterContentTemplateSelector 屬性,則會 ContentStringFormat 忽略 屬性。

相依性屬性資訊

識別碼欄位 ContentStringFormatProperty
設定為 的中繼資料屬性 true

適用於