CurrencyFormatter.IsZeroSigned 属性

定义

获取或设置使用负数约定还是正数约定设置 -0 的格式。 (在拉丁语数字系统中,选择为“-0”或“0”。)

public:
 property bool IsZeroSigned { bool get(); void set(bool value); };
bool IsZeroSigned();

void IsZeroSigned(bool value);
public bool IsZeroSigned { get; set; }
var boolean = currencyFormatter.isZeroSigned;
currencyFormatter.isZeroSigned = boolean;
Public Property IsZeroSigned As Boolean

属性值

Boolean

bool

如果 -0 的格式设置为负数,则为 True;如果 -0 格式化为拉丁文数字系统中 (“-0”或“0”的正数,则为 false) 。

实现

注解

可以将此属性设置为指定 CurrencyFormatter 将负 0 显示为“-0”。 这样一来,当“-0”表示某些小负值 ((例如 -0.00001) )的舍入值时,你希望显示“-0”。

此属性默认为 false 以与 Windows 8 和 Windows Server 2012 保持一致,其中 -0 的格式始终为“0”。

适用于