Share via


NumberFormatAttribute Constructor (String, Nullable<Int32>, Nullable<Double>)

Initializes a new instance of the NumberFormatAttribute class with the specified format string, precision, and scale.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    formatString As String, _
    maxPrecision As Nullable(Of Integer), _
    scale As Nullable(Of Double) _
)
public NumberFormatAttribute(
    string formatString,
    Nullable<int> maxPrecision,
    Nullable<double> scale
)
public:
NumberFormatAttribute(
    String^ formatString, 
    Nullable<int> maxPrecision, 
    Nullable<double> scale
)
new : 
        formatString:string * 
        maxPrecision:Nullable<int> * 
        scale:Nullable<float> -> NumberFormatAttribute
public function NumberFormatAttribute(
    formatString : String, 
    maxPrecision : Nullable<int>, 
    scale : Nullable<double>
)

Parameters

  • maxPrecision
    Type: System.Nullable<Int32>
    An integer that represents the maximum number of decimal places handled by the number editor.
  • scale
    Type: System.Nullable<Double>
    A scale factor that is applied to the displayed value of the number.

.NET Framework Security

See Also

Reference

NumberFormatAttribute Class

NumberFormatAttribute Overload

Microsoft.Windows.Design.PropertyEditing Namespace