LanguageSettingsFormattingLanguage Property

Gets or sets the formatting language of the current Thread, which is used for formatting and parsing numbers, date and time values, currency, etc. When set, FormattingLanguageChanged and FormattingLanguageChangedGlobal events are triggered.

Definition

Namespace: KGySoft
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public static CultureInfo FormattingLanguage { get; set; }

Property Value

CultureInfo
The formatting language of the current Thread. By default equals to the language of formats of system regional settings.

Remarks

Formatting language represents the regional setting of formatting and parsing numbers, date and time values, currency, etc.

Use this property instead of Thread.CurrentThread.CurrentCulture to keep language changes synchronized in your application.

When this property is set, FormattingLanguageChanged and FormattingLanguageChangedGlobal events are triggered, which makes possible for example refreshing UI components displaying culture-specific formatted values.

Exceptions

See Also