DigitShapes DigitShapes DigitShapes DigitShapes Enum

定义

指定特定于区域的数字显示方式。Specifies the culture-specific display of digits.

public enum class DigitShapes
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum DigitShapes
type DigitShapes = 
Public Enum DigitShapes
继承
属性

字段

Context Context Context Context 0

数字形状取决于同一输出中前面的文本。The digit shape depends on the previous text in the same output. 拉丁文后使用欧洲语言样式的数字;阿拉伯语后使用阿拉伯-印度语数字;泰语后使用泰语数字。European digits follow Latin scripts; Arabic-Indic digits follow Arabic text; and Thai digits follow Thai text.

NativeNational NativeNational NativeNational NativeNational 2

数字形状是从 0 到 9 的数字的本地等效数字形状。The digit shape is the native equivalent of the digits from 0 through 9. 从 0 到 9 的 ASCII 数字被等效的本地文字替换。ASCII digits from 0 through 9 are replaced by equivalent native national digits.

None None None None 1

数字形状不变。The digit shape is not changed. Unicode 可保持完全的兼容性。Full Unicode compatibility is maintained.

注解

一个DigitShapes值指定没有数字形状替换为 Unicode 输入、 数字形状根据上下文,替换或本机的国际数字形状替换为输入。A DigitShapes value specifies that no digit shape is substituted for the Unicode input, a digit shape is substituted based on context, or a native national digit shape is substituted for the input.

阿拉伯语、 印度语和泰语语言具有不同于数字 0 到 9 (Unicode u+0030 到 U + 0039),最常使用的计算机的数字的传统形状。The Arabic, Indic, and Thai languages have classical shapes for numbers that are different from the digits 0 through 9 (Unicode U+0030 through U+0039), which are most often used on computers. 应用程序使用DigitShapes枚举,其中DigitSubstitution属性来指定如何在没有其他格式设置信息中显示数字 u+0030 至 u+0039。The application uses the DigitShapes enumeration with the DigitSubstitution property to specify how to display digits U+0030 through U+0039 in the absence of other formatting information.

DigitShapes枚举主要由应用程序适用于使用双向脚本的区域性。The DigitShapes enumeration is primarily used by applications intended for cultures that use bidirectional scripts. 例如,阿拉伯语和印度语脚本的阅读顺序是双向的。For example, the reading order of Arabic and Indic scripts is bidirectional.

适用于

另请参阅