INumericFormat 接口

以下内容为参照英文开发帮助自己翻译。如有错误,见谅!

提供访问格式化数字成员的接口

INumericFormat接口的成员定义了 与ValueToString 方法相关的 将值转化为格式化字符串的显示属性等

AlignmentOption

The alignment option applied to the ValueToString method.

对齐方式。

esriAlignRight。默认对齐方式。右对齐。如果AlignmentWidth设置的宽度比格式化的数字宽,格式化的数字左端添加空格补齐。如果格式化数字的宽度比AlignmentWidth属性设置的值宽,格式化数字不删减左端数字。esriAlignLeft对齐方式亦如此

esriAlignLeft 左对齐

AlignmentWidth

The alignment width applied to the ValueToString method.

对齐宽度

RoundingOption

The rounding option applied to the ValueToString method.

四舍五入方法

esriRoundNumberOfDecimals 四舍五入到小数点后的roundingvalue位。

esriRoundNumberOfSignificantDigits  四舍五入到roundingvalue位有效数字。

RoundingValue

The rounding value, whose meaning depends on the rounding option.

ShowPlusSign

Indicates if formatted numbers contain a plus sign for positive numbers.

正值是否显示+号

UseSeparator

Indicates if formatted numbers contain digit grouping symbols.

是否包含数字分割符

ZeroPad

Indicates if formatted numbers contain padded zeros to the right of the decimal.

小数点后是否包含衬垫零

你可能感兴趣的:(format)