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

Initialisiert eine neue Instanz der NumberFormatAttribute-Klasse mit der angegebenen Formatierungszeichenfolge, Genauigkeit und Skalierung.

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

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