NumberSubstitution.CultureSource 屬性

定義

取得或設定值,這個值會識別用來判斷數位替代的文化特性值來源。

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

屬性值

NumberCultureSource的列舉值。

備註

CultureSource 屬性的預設值為 Text,這是文字執行的文化特性。

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

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

  • 您可以將此屬性設定為 XAML 中的附加屬性使用方式。 附加屬性使用方式是此屬性具有 Dependency Property Information 區段的原因,因為附加屬性是由相依性屬性標識符所支援。 在 XAML 中,使用方式是 <objectNumberSubstitution.CultureSource="".../>,其中 物件 是套用指定數位替代邏輯的對象專案,而 NumberCultureSource 值的字元串表示法。 在程式代碼中,GetCultureSourceSetCultureSource支援附加屬性使用方式。

XAML 屬性使用方式

< objectNumberSubstitution.CultureSource=“NumberCultureSource”/>

相依性屬性資訊

標識元欄位 CultureSourceProperty
設定為 true 的元數據屬性 沒有

適用於