TextInfo Class
Defines properties and behaviors, such as casing, that are specific to a writing system.
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
The TextInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | CultureName | Gets the name of the culture associated with the current TextInfo object. |
![]() ![]() ![]() | IsReadOnly | Gets a value indicating whether the current TextInfo object is read-only. |
![]() ![]() ![]() | ListSeparator | Gets or sets the string that separates items in a list. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | Equals | Determines whether the specified object represents the same writing system as the current TextInfo object. (Overrides Object.Equals(Object).) |
![]() ![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() ![]() | GetHashCode | Serves as a hash function for the current TextInfo object, suitable for hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode.) |
![]() ![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() ![]() | ToLower(Char) | Converts the specified character to lowercase. |
![]() ![]() ![]() | ToLower(String) | Converts the specified string to lowercase. |
![]() ![]() ![]() | ToString | Returns a string that represents the current TextInfo. (Overrides Object.ToString.) |
![]() ![]() ![]() | ToUpper(Char) | Converts the specified character to uppercase. |
![]() ![]() ![]() | ToUpper(String) | Converts the specified string to uppercase. |
A writing system is the collection of scripts and orthographic rules required to represent a language as text. The TextInfo class represents a writing system.
The application should use the CultureInfo.TextInfo property to obtain the TextInfo object for a particular CultureInfo object. If a security decision depends on a string comparison or a case-change operation, the application should use the CultureInfo.TextInfo property of the object returned by the CultureInfo.InvariantCulture property to ensure that the behavior of the operation is consistent regardless of the operating system culture settings.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.




