Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
TextInfo Class
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
TextInfo Class

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

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Class TextInfo _
    Implements ICloneable, IDeserializationCallback
Visual Basic (Usage)
Dim instance As TextInfo
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
public class TextInfo : ICloneable, IDeserializationCallback
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
public ref class TextInfo : ICloneable, 
    IDeserializationCallback
JScript
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.

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.

Overrides

The user might use the regional and language options portion of 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker