DigitShapes 枚举


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

public enum class DigitShapes
public enum DigitShapes
type DigitShapes = 
Public Enum DigitShapes


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 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 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.