Defines text properties and behaviors, such as casing, that are specific to a writing system.
public ref class TextInfo : ICloneable, System::Runtime::Serialization::IDeserializationCallback
[System.Runtime.InteropServices.ComVisible(true)] [System.Serializable] public class TextInfo : ICloneable, System.Runtime.Serialization.IDeserializationCallback
type TextInfo = class interface ICloneable interface IDeserializationCallback
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.
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.
Gets the American National Standards Institute (ANSI) code page used by the writing system represented by the current TextInfo.
Gets the name of the culture associated with the current TextInfo object.
Gets the Extended Binary Coded Decimal Interchange Code (EBCDIC) code page used by the writing system represented by the current TextInfo.
Gets a value indicating whether the current TextInfo object is read-only.
Gets a value indicating whether the current TextInfo object represents a writing system where text flows from right to left.
Gets the culture identifier for the culture associated with the current TextInfo object.
Gets or sets the string that separates items in a list.
Gets the Macintosh code page used by the writing system represented by the current TextInfo.
Gets the original equipment manufacturer (OEM) code page used by the writing system represented by the current TextInfo.
Creates a new object that is a copy of the current TextInfo object.
Determines whether the specified object represents the same writing system as the current TextInfo object.
Serves as a hash function for the current TextInfo, suitable for hashing algorithms and data structures, such as a hash table.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a read-only version of the specified TextInfo object.
Converts the specified character to lowercase.
Converts the specified string to lowercase.
Returns a string that represents the current TextInfo.
Converts the specified string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).
Converts the specified character to uppercase.
Converts the specified string to uppercase.
Explicit Interface Implementations
Raises the deserialization event when deserialization is complete.