Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextInfo Class

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.

System.Object
   System.Globalization.TextInfo

[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

Thread Safety

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

Remarks

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.

Requirements

Namespace: System.Globalization

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)

See Also

TextInfo Members | System.Globalization Namespace | StringInfo

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft