Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextInfo Class

Defines properties and behaviors, such as casing, that are specific to a writing system.

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

[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class TextInfo : ICloneable, IDeserializationCallback
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public class TextInfo implements ICloneable, IDeserializationCallback
SerializableAttribute 
ComVisibleAttribute(true) 
public class TextInfo implements ICloneable, IDeserializationCallback

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.

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, 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 system culture settings.

Overrides

The user might use Regional and Language Options (or Regional Options or Regional Settings) in Control Panel to override the values associated with the current culture of Windows. 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 property values of the objects returned by the CultureInfo.DateTimeFormat, CultureInfo.NumberFormat, and CultureInfo.TextInfo properties 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.

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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.