Defines properties and behaviors, such as casing, that are specific to a writing system.
For a list of all members of this type, see TextInfo Members.
[Visual Basic] <Serializable> Public Class TextInfo Implements IDeserializationCallback [C#] [Serializable] public class TextInfo : IDeserializationCallback [C++] [Serializable] public __gc class TextInfo : public IDeserializationCallback [JScript] public Serializable class TextInfo implements IDeserializationCallback
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
A writing system is the collection of scripts and orthographic rules required to represent a language as text.
To create a TextInfo for any culture, use the CultureInfo.TextInfo property. If a security decision depends on a string comparison or a case-change operation, use CultureInfo.TextInfo of the InvariantCulture to ensure that the behavior will be consistent regardless of the culture settings of the system.
The user might choose to override some of the values associated with the current culture of Windows through Regional and Language Options (or Regional Options or Regional Settings) in Control Panel. For example, the user might choose to display the date in a different format or to use a currency other than the default for the culture. If the CultureInfo.UseUserOverride property is set to true, the properties of the CultureInfo.DateTimeFormat instance, the CultureInfo.NumberFormat instance, and the CultureInfo.TextInfo instance are also retrieved from the user settings. If the user settings are incompatible with the culture associated with the CultureInfo (for example, if the selected calendar is not one of the OptionalCalendars), the results of the methods and the values of the properties are undefined.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)