Share via


NumberSubstitution.Substitution 屬性

定義

取得或設定值,這個值識別用來判斷數字替代的替代方法。

public:
 property System::Windows::Media::NumberSubstitutionMethod Substitution { System::Windows::Media::NumberSubstitutionMethod get(); void set(System::Windows::Media::NumberSubstitutionMethod value); };
public System.Windows.Media.NumberSubstitutionMethod Substitution { get; set; }
member this.Substitution : System.Windows.Media.NumberSubstitutionMethod with get, set
Public Property Substitution As NumberSubstitutionMethod

屬性值

NumberSubstitutionMethod 的列舉值。

備註

屬性的 CultureSource 預設值為 AsCulture ,指定應該根據數位文化特性的 DigitSubstitution 屬性值來判斷替代方法。

此參考頁面代表兩個相同名稱,但不是屬性的完全對等用法 Substitution

  • 您可以在 實例的程式 NumberSubstitution 代碼中設定此屬性,作為 Common Language Runtime (CLR) 屬性。 在此使用方式中,屬性不是由相依性屬性識別碼所支援,它是由私用欄位所支援,而且不會做為相依性屬性。

  • 您可以在 XAML 中將此屬性設定為附加屬性使用方式。 附加屬性使用方式是這個屬性具有 Dependency Property Information 區段的原因,因為附加屬性是由相依性屬性識別碼所支援。 在 XAML 中,用法是 <物件 NumberSubstitution.Substitution="".../> ,其中object是套用指定數位替代邏輯的物件元素,而value是值的字串表示 NumberSubstitutionMethod 。 在程式碼中,和 SetSubstitution 支援 GetSubstitution 附加屬性使用方式。

XAML Attribute Usage

<objectNumberSubstitution.Substitution=「 NumberSubstitutionMethod 」/>

相依性屬性資訊

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

適用於