Xceed Grid for WinForms v4.3 Documentation
Decimals Property


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinNumericTextBox Class : Decimals Property
Gets or sets a value indicating the maximum number of digits which can be entered after the decimal point.
Syntax
'Declaration
 
<CategoryAttribute("Data")>
<DescriptionAttribute("The maximum number of digits which can be entered after the decimal point.")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public Property Decimals As Integer
'Usage
 
Dim instance As WinNumericTextBox
Dim value As Integer
 
instance.Decimals = value
 
value = instance.Decimals
[Category("Data")]
[Description("The maximum number of digits which can be entered after the decimal point.")]
[RefreshProperties(RefreshProperties.Repaint)]
public int Decimals {get; set;}

Property Value

A value indicating the maximum number of digits which can be entered after the decimal point. If -1, an unlimited number of digits can be entered.
Remarks

Contrary to the MinValue and MaxValue properties, affecting this property will not rectify the control's Value property. This property will only be used when validating the control's input; forcing the user to enter no more than the specified ammount of decimals.

Requirements

Target Platforms: 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

Reference

WinNumericTextBox Class
WinNumericTextBox Members