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
- formatString
Type: System.String
A number format string.
- 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.
- mapArray
Type: array<Microsoft.Windows.Design.PropertyEditing.KeyAttributePair<NumberFormatAttribute>[]
An array of KeyAttributePair<T> instances.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.