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>[]
)
參數
- formatString
型別:System.String
數字格式字串。
- maxPrecision
型別:System.Nullable<Int32>
整數,表示數字編輯器處理的小數位數上限。
- scale
型別:System.Nullable<Double>
套用至顯示之數值的縮放比例。
- mapArray
型別:array<Microsoft.Windows.Design.PropertyEditing.KeyAttributePair<NumberFormatAttribute>[]
KeyAttributePair<T> 執行個體的陣列。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。