Version

Culture Property (WebNumericEditor)

Gets sets the System.Globalization.CultureInfo object used by the control.
Syntax
'Declaration
 
Public Property Culture As CultureInfo
public CultureInfo Culture {get; set;}
Remarks

The Culture property allows to customize all aspects of format that is applied to numeric value while converting it to string.

Format options are applied to text in display (not focus) state. In focus state, only decimal separator character is supported and in case of negative numbers, the "-" character is located in front of digits.

If value is not set, then the System.Threading.Thread.CurrentThread.CurrentCulture is used.

The WebNumericEditoror uses the properties of the NumberFormatInfo that starts with the "Number", for example, NumberDecimalDigits.

The WebCurrencyEditor uses the properties of the NumberFormatInfo that starts with the "Currency", for example, CurrencyDecimalDigits.

The WebPercentEditor uses the properties of the NumberFormatInfo that starts with the "Percent", for example, PercentDecimalDigits.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also