Skip to main content

FormatInfo.AlwaysUseThreadFormat Property

Gets or sets whether a value for the FormatInfo.Format property should be determined each time the property is accessed.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public static bool AlwaysUseThreadFormat { get; set; }

Property Value

Type Description
Boolean

true if the value for the FormatInfo.Format property should be determined each time the property is accessed.

Remarks

Set the AlwaysUseThreadFormat property to true if your application creates several threads which use different languages or regional settings.

The FormatInfo.Format property specifies the format provider used for formatting values. When you call FormatInfo.GetDisplayText, the function reads the FormatInfo.Format property and uses this format provider to format the value passed as a parameter.

AlwaysUseThreadFormat specifies how the value for the FormatInfo.Format property should be determined. If AlwaysUseThreadFormat is true, FormatInfo.Format is updated each time the property is accessed. If AlwaysUseThreadFormat is false, the value for the FormatInfo.Format property is determined only when changing the FormatInfo.FormatType property.

Refer to the FormatInfo.Format topic for more information.

See Also