TextInfo Class
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

SystemObject
  System.GlobalizationTextInfo

[SerializableAttribute]
[ComVisibleAttribute(true)]
public class TextInfo : ICloneable, IDeserializationCallback
[SerializableAttribute]
[ComVisibleAttribute(true)]
public ref class TextInfo : ICloneable, IDeserializationCallback
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type TextInfo = 
    class
        interface ICloneable
        interface IDeserializationCallback
    end
<SerializableAttribute>
<ComVisibleAttribute(True)>
Public Class TextInfo
	Implements ICloneable, IDeserializationCallback
NameDescription
System_CAPS_pubproperty

Gets the American National Standards Institute (ANSI) code page used by the writing system represented by the current TextInfo.

System_CAPS_pubproperty

Gets the name of the culture associated with the current TextInfo object.

System_CAPS_pubproperty

Gets the Extended Binary Coded Decimal Interchange Code (EBCDIC) code page used by the writing system represented by the current TextInfo.

System_CAPS_pubproperty

Gets a value indicating whether the current TextInfo object is read-only.

System_CAPS_pubproperty

Gets a value indicating whether the current TextInfo object represents a writing system where text flows from right to left.

System_CAPS_pubproperty

Gets the culture identifier for the culture associated with the current TextInfo object.

System_CAPS_pubproperty

Gets or sets the string that separates items in a list.

System_CAPS_pubproperty

Gets the Macintosh code page used by the writing system represented by the current TextInfo.

System_CAPS_pubproperty

Gets the original equipment manufacturer (OEM) code page used by the writing system represented by the current TextInfo.

NameDescription
System_CAPS_pubmethod Clone

Creates a new object that is a copy of the current TextInfo object.

System_CAPS_pubmethod Equals

Determines whether the specified object represents the same writing system as the current TextInfo object.(Overrides ObjectEquals.)

System_CAPS_protmethod Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethod GetHashCode

Serves as a hash function for the current TextInfo, suitable for hashing algorithms and data structures, such as a hash table.(Overrides ObjectGetHashCode.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethod System_CAPS_static ReadOnly

Returns a read-only version of the specified TextInfo object.

System_CAPS_pubmethod ToLower

Converts the specified character to lowercase.

System_CAPS_pubmethod ToLower

Converts the specified string to lowercase.

System_CAPS_pubmethod ToString

Returns a string that represents the current TextInfo.(Overrides ObjectToString.)

System_CAPS_pubmethod ToTitleCase

Converts the specified string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).

System_CAPS_pubmethod ToUpper

Converts the specified character to uppercase.

System_CAPS_pubmethod ToUpper

Converts the specified string to uppercase.

NameDescription
System_CAPS_pubinterface System_CAPS_privmethod IDeserializationCallbackOnDeserialization

This API supports the product infrastructure and is not intended to be used directly from your code. Raises the deserialization event when deserialization is complete.

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 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 property of the object returned by the property to ensure that the behavior of the operation is consistent regardless of the operating system culture settings.

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 property is set to true, the property values of the objects returned by the , , and 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 , the results of the methods and the values of the properties are undefined.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

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

Return to top