Windows Dev Center

TextInfo Class

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

System.Object
  System.Globalization.TextInfo

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

public class TextInfo

The TextInfo type exposes the following members.

  NameDescription
Public propertyCultureNameGets the name of the culture associated with the current TextInfo object.
Public propertyIsReadOnlyGets a value indicating whether the current TextInfo object is read-only.
Public propertyListSeparatorGets or sets the string that separates items in a list.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object represents the same writing system as the current TextInfo object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for the current TextInfo object, suitable for hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToLower(Char)Converts the specified character to lowercase.
Public methodToLower(String)Converts the specified string to lowercase.
Public methodToStringReturns a string that represents the current TextInfo. (Overrides Object.ToString().)
Public methodToUpper(Char)Converts the specified character to uppercase.
Public methodToUpper(String)Converts the specified string to uppercase.
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2015 Microsoft