mscorlib(4.0.0.0) API with additions
System.Globalization.TextInfo Class Reference

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

Inheritance diagram for System.Globalization.TextInfo:
[legend]
Collaboration diagram for System.Globalization.TextInfo:
[legend]

Public Member Functions

virtual object Clone ()
 Creates a new object that is a copy of the current T:System.Globalization.TextInfo object. More...
 
virtual char ToLower (char c)
 Converts the specified character to lowercase. More...
 
virtual string ToLower (string str)
 Converts the specified string to lowercase. More...
 
virtual char ToUpper (char c)
 Converts the specified character to uppercase. More...
 
virtual string ToUpper (string str)
 Converts the specified string to uppercase. More...
 
override bool Equals (object obj)
 Determines whether the specified object represents the same writing system as the current T:System.Globalization.TextInfo object. More...
 
override int GetHashCode ()
 Serves as a hash function for the current T:System.Globalization.TextInfo, suitable for hashing algorithms and data structures, such as a hash table. More...
 
override string ToString ()
 Returns a string that represents the current T:System.Globalization.TextInfo. More...
 
string ToTitleCase (string str)
 Converts the specified string to title case (except for words that are entirely in uppercase, which are considered to be acronyms). More...
 

Static Public Member Functions

static TextInfo ReadOnly (TextInfo textInfo)
 Returns a read-only version of the specified T:System.Globalization.TextInfo object. More...
 

Public Attributes

virtual int ANSICodePage => m_cultureData.IDEFAULTANSICODEPAGE
 Gets the American National Standards Institute (ANSI) code page used by the writing system represented by the current T:System.Globalization.TextInfo. More...
 
virtual int OEMCodePage => m_cultureData.IDEFAULTOEMCODEPAGE
 Gets the original equipment manufacturer (OEM) code page used by the writing system represented by the current T:System.Globalization.TextInfo. More...
 
virtual int MacCodePage => m_cultureData.IDEFAULTMACCODEPAGE
 Gets the Macintosh code page used by the writing system represented by the current T:System.Globalization.TextInfo. More...
 
virtual int EBCDICCodePage => m_cultureData.IDEFAULTEBCDICCODEPAGE
 Gets the Extended Binary Coded Decimal Interchange Code (EBCDIC) code page used by the writing system represented by the current T:System.Globalization.TextInfo. More...
 

Properties

int LCID [get]
 Gets the culture identifier for the culture associated with the current T:System.Globalization.TextInfo object. More...
 
string CultureName [get]
 Gets the name of the culture associated with the current T:System.Globalization.TextInfo object. More...
 
bool IsReadOnly [get]
 Gets a value indicating whether the current T:System.Globalization.TextInfo object is read-only. More...
 
virtual string ListSeparator [get, set]
 Gets or sets the string that separates items in a list. More...
 
bool IsRightToLeft [get]
 Gets a value indicating whether the current T:System.Globalization.TextInfo object represents a writing system where text flows from right to left. More...
 

Detailed Description

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

Definition at line 13 of file TextInfo.cs.

Member Function Documentation

◆ Clone()

virtual object System.Globalization.TextInfo.Clone ( )
virtual

Creates a new object that is a copy of the current T:System.Globalization.TextInfo object.

Returns
A new instance of T:System.Object that is the memberwise clone of the current T:System.Globalization.TextInfo object.

Implements System.ICloneable.

Definition at line 316 of file TextInfo.cs.

◆ Equals()

override bool System.Globalization.TextInfo.Equals ( object  obj)

Determines whether the specified object represents the same writing system as the current T:System.Globalization.TextInfo object.

Parameters
objThe object to compare with the current T:System.Globalization.TextInfo.
Returns
true if obj represents the same writing system as the current T:System.Globalization.TextInfo; otherwise, false.

Definition at line 445 of file TextInfo.cs.

◆ GetHashCode()

override int System.Globalization.TextInfo.GetHashCode ( )

Serves as a hash function for the current T:System.Globalization.TextInfo, suitable for hashing algorithms and data structures, such as a hash table.

Returns
A hash code for the current T:System.Globalization.TextInfo.

Definition at line 458 of file TextInfo.cs.

◆ ReadOnly()

static TextInfo System.Globalization.TextInfo.ReadOnly ( TextInfo  textInfo)
static

Returns a read-only version of the specified T:System.Globalization.TextInfo object.

Parameters
textInfoA T:System.Globalization.TextInfo object.
Returns
The T:System.Globalization.TextInfo object specified by the textInfo parameter, if textInfo is read-only.-or-A read-only memberwise clone of the T:System.Globalization.TextInfo object specified by textInfo , if textInfo is not read-only.
Exceptions
T:System.ArgumentNullExceptiontextInfo is null.

Definition at line 329 of file TextInfo.cs.

◆ ToLower() [1/2]

virtual char System.Globalization.TextInfo.ToLower ( char  c)
virtual

Converts the specified character to lowercase.

Parameters
cThe character to convert to lowercase.
Returns
The specified character converted to lowercase.

Definition at line 362 of file TextInfo.cs.

◆ ToLower() [2/2]

virtual string System.Globalization.TextInfo.ToLower ( string  str)
virtual

Converts the specified string to lowercase.

Parameters
strThe string to convert to lowercase.
Returns
The specified string converted to lowercase.
Exceptions
T:System.ArgumentNullExceptionstr is null.

Definition at line 378 of file TextInfo.cs.

◆ ToString()

override string System.Globalization.TextInfo.ToString ( )

Returns a string that represents the current T:System.Globalization.TextInfo.

Returns
A string that represents the current T:System.Globalization.TextInfo.

Definition at line 466 of file TextInfo.cs.

◆ ToTitleCase()

string System.Globalization.TextInfo.ToTitleCase ( string  str)

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

Parameters
strThe string to convert to title case.
Returns
The specified string converted to title case.
Exceptions
T:System.ArgumentNullExceptionstr is null.

Definition at line 476 of file TextInfo.cs.

◆ ToUpper() [1/2]

virtual char System.Globalization.TextInfo.ToUpper ( char  c)
virtual

Converts the specified character to uppercase.

Parameters
cThe character to convert to uppercase.
Returns
The specified character converted to uppercase.

Definition at line 401 of file TextInfo.cs.

◆ ToUpper() [2/2]

virtual string System.Globalization.TextInfo.ToUpper ( string  str)
virtual

Converts the specified string to uppercase.

Parameters
strThe string to convert to uppercase.
Returns
The specified string converted to uppercase.
Exceptions
T:System.ArgumentNullExceptionstr is null.

Definition at line 417 of file TextInfo.cs.

Member Data Documentation

◆ ANSICodePage

virtual int System.Globalization.TextInfo.ANSICodePage => m_cultureData.IDEFAULTANSICODEPAGE

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

Returns
The ANSI code page used by the writing system represented by the current T:System.Globalization.TextInfo.

Definition at line 69 of file TextInfo.cs.

◆ EBCDICCodePage

virtual int System.Globalization.TextInfo.EBCDICCodePage => m_cultureData.IDEFAULTEBCDICCODEPAGE

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

Returns
The EBCDIC code page used by the writing system represented by the current T:System.Globalization.TextInfo.

Definition at line 81 of file TextInfo.cs.

◆ MacCodePage

virtual int System.Globalization.TextInfo.MacCodePage => m_cultureData.IDEFAULTMACCODEPAGE

Gets the Macintosh code page used by the writing system represented by the current T:System.Globalization.TextInfo.

Returns
The Macintosh code page used by the writing system represented by the current T:System.Globalization.TextInfo.

Definition at line 77 of file TextInfo.cs.

◆ OEMCodePage

virtual int System.Globalization.TextInfo.OEMCodePage => m_cultureData.IDEFAULTOEMCODEPAGE

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

Returns
The OEM code page used by the writing system represented by the current T:System.Globalization.TextInfo.

Definition at line 73 of file TextInfo.cs.

Property Documentation

◆ CultureName

string System.Globalization.TextInfo.CultureName
get

Gets the name of the culture associated with the current T:System.Globalization.TextInfo object.

Returns
The name of a culture.

Definition at line 99 of file TextInfo.cs.

◆ IsReadOnly

bool System.Globalization.TextInfo.IsReadOnly
get

Gets a value indicating whether the current T:System.Globalization.TextInfo object is read-only.

Returns
true if the current T:System.Globalization.TextInfo object is read-only; otherwise, false.

Definition at line 113 of file TextInfo.cs.

◆ IsRightToLeft

bool System.Globalization.TextInfo.IsRightToLeft
get

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

Returns
true if text flows from right to left; otherwise, false.

Definition at line 169 of file TextInfo.cs.

◆ LCID

int System.Globalization.TextInfo.LCID
get

Gets the culture identifier for the culture associated with the current T:System.Globalization.TextInfo object.

Returns
A number that identifies the culture from which the current T:System.Globalization.TextInfo object was created.

Definition at line 87 of file TextInfo.cs.

◆ ListSeparator

virtual string System.Globalization.TextInfo.ListSeparator
getset

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

Returns
The string that separates items in a list.
Exceptions
T:System.ArgumentNullExceptionThe value in a set operation is null.
T:System.InvalidOperationExceptionIn a set operation, the current T:System.Globalization.TextInfo object is read-only.

Definition at line 127 of file TextInfo.cs.


The documentation for this class was generated from the following file: