Share via


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

Initializes a new instance of the NumberFormatAttribute class with the specified format string, precision, scale, and KeyAttributePair<T> instances.

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), _
    mapArray As KeyAttributePair(Of NumberFormatAttribute)() _
)
public NumberFormatAttribute(
    string formatString,
    Nullable<int> maxPrecision,
    Nullable<double> scale,
    KeyAttributePair<NumberFormatAttribute>[] mapArray
)
public:
NumberFormatAttribute(
    String^ formatString, 
    Nullable<int> maxPrecision, 
    Nullable<double> scale, 
    array<KeyAttributePair<NumberFormatAttribute^>>^ mapArray
)
new : 
        formatString:string * 
        maxPrecision:Nullable<int> * 
        scale:Nullable<float> * 
        mapArray:KeyAttributePair<NumberFormatAttribute>[] -> NumberFormatAttribute
public function NumberFormatAttribute(
    formatString : String, 
    maxPrecision : Nullable<int>, 
    scale : Nullable<double>, 
    mapArray : KeyAttributePair<NumberFormatAttribute>[]
)

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