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

Initialisiert eine neue Instanz der NumberFormatAttribute-Klasse mit der angegebenen Formatierungszeichenfolge, Genauigkeit, Skalierung und KeyAttributePair<T>-Instanzen.

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>[]
)

Parameter

  • formatString
    Typ: System.String
    Eine Zahlenformatierungszeichenfolge.
  • maxPrecision
    Typ: System.Nullable<Int32>
    Eine ganze Zahl, die die maximale Anzahl von Dezimalstellen darstellt, die vom Zahlen-Editor verarbeitet werden können.
  • scale
    Typ: System.Nullable<Double>
    Ein Skalierungsfaktor, der auf den angezeigten Wert der Zahl angewendet wird.

.NET Framework-Sicherheit

Siehe auch

Referenz

NumberFormatAttribute Klasse

NumberFormatAttribute-Überladung

Microsoft.Windows.Design.PropertyEditing-Namespace