共用方式為


NumberFormatAttribute 建構函式 (String, Nullable<Int32>, Nullable<Double>, array<KeyAttributePair<NumberFormatAttribute> )

使用指定的格式字串、精確度、小數點位數和 KeyAttributePair<T> 執行個體,初始化 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), _
    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>[]
)

參數

  • maxPrecision
    型別:System.Nullable<Int32>
    整數,表示數字編輯器處理的小數位數上限。

.NET Framework 安全性

請參閱

參考

NumberFormatAttribute 類別

NumberFormatAttribute 多載

Microsoft.Windows.Design.PropertyEditing 命名空間