O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 field int ANSICodePage{get; } 
   public virtual field int EBCDICCodePage{get; } 
   public virtual field string ListSeparator{get; } 
   public virtual field int MacCodePage{get; } 
   public virtual field int OEMCodePage{get; } 
// Public Instance Methods
   public override method bool Equals(object obj);              // overrides object
   public override method int GetHashCode();                     // overrides object
   public virtual method char ToLower(char c);  
   public virtual method string ToLower(string str);  
   public override method string ToString();                     // overrides object
   public method string ToTitleCase(string str);  
   public virtual method char ToUpper(char c);  
   public virtual method string ToUpper(string str);  
}

Returned By

CultureInfo.TextInfo

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required