CharUnicodeInfo Class

CharUnicodeInfo Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves information about a Unicode character. This class cannot be inherited.

System::Object
  System.Globalization::CharUnicodeInfo

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

  NameDescription
Public methodStatic memberGetNumericValue(Char)Gets the numeric value associated with the specified character.
Public methodStatic memberGetNumericValue(String, Int32)Gets the numeric value associated with the character at the specified index of the specified string.
Public methodStatic memberGetUnicodeCategory(Char)Gets the Unicode category of the specified character.
Public methodStatic memberGetUnicodeCategory(String, Int32)Gets the Unicode category of the character at the specified index of the specified string.
Top

The Unicode Standard defines several properties for Unicode characters, one of which is the character's category. For example, a character might be categorized as an uppercase letter, a lowercase letter, a decimal digit number, a letter number, a connector punctuation, a math symbol, or a currency symbol. Your application can use the character's category to govern string-based operations such as parsing.

The UnicodeCategory enumeration defines categories for Unicode characters. The CharUnicodeInfo class is used to obtain the UnicodeCategory value for a specific character. In addition, the class provides information about the numeric value of Unicode characters. A character's numeric value applies only to numeric characters, which include fractions, subscripts, superscripts, Roman numerals, currency numerators, encircled numbers, and script-specific digits.

For more information on Unicode characters, see the Unicode Standard.

The following code example shows the values returned by each method for different types of characters.

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft