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

NumberFormatInfo::set_PercentNegativePattern method

设置百分比负数模式。

void System::Globalization::NumberFormatInfo::set_PercentNegativePattern(int value)
ParameterType描述
valueint数组中模式的索引为 {"-n %", "-n%", "-%n", "%-n", "%n-", "n-%", "n%-", "-% n", "n %-", "% n-", "% -n", "n- %"},其中 "n" 代表数字,"%" 代表百分号,"-" 代表负号。

另见