Name
TextInfo
Synopsis
This class is used to describe
certain properties of the
writing system in use by a culture. The properties of this class
specify system-specific and standardized code pages for text, as well
as the ListSeparator
string (a
“,” for the invariant culture).
TextInfo
defines methods that determine casing
semantics per culture. For example, ToLower( )
returns the lowercase version of the specified character or string.
The ToTitleCase( )
method capitalizes the first
letter of each word in a string.
public class TextInfo : System.Runtime.Serialization.IDeserializationCallback { // Public Instance Properties public virtual int ANSICodePage{get; } public virtual int EBCDICCodePage{get; } public virtual string ListSeparator{get; } public virtual int MacCodePage{get; } public virtual int OEMCodePage{get; } // Public Instance Methods public override bool Equals(objectobj
); // overrides object public override int GetHashCode( ); // overrides object public virtual char ToLower(charc
); public virtual string ToLower(stringstr
); public override string ToString( ); // overrides object public string ToTitleCase(stringstr
); public virtual char ToUpper(charc
); public virtual string ToUpper(stringstr
); }
Returned By
CultureInfo.TextInfo
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.