NumberFormatAttribute 构造函数 (String, Nullable<Int32>, Nullable<Double>)

使用指定的格式字符串、精度和小数位数初始化 NumberFormatAttribute 类的新实例。

命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

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

参数

  • formatString
    类型:System.String
    一个数字格式字符串。
  • maxPrecision
    类型:System.Nullable<Int32>
    一个整数,表示数字编辑器可处理的最大小数位数。

.NET Framework 安全性

请参见

参考

NumberFormatAttribute 类

NumberFormatAttribute 重载

Microsoft.Windows.Design.PropertyEditing 命名空间