System::Globalization::NumberFormatInfo::set_PercentNegativePattern 方法

NumberFormatInfo::set_PercentNegativePattern method

设置百分比负数模式。

void System::Globalization::NumberFormatInfo::set_PercentNegativePattern(int value)
参数类型描述
int数组中模式的索引 {"-n %", “-n%”, “-%n”, “%-n”, “%n-”, “n-%”, “n%-”, “-% n”, “n %-”, “% n-”, “% -n”, “n- %"},其中 “n” 表示数字,”%" 表示百分号,"-" 表示负号。

另见