Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Globalization.​TextInfo

Assembly: System.Runtime

Inheritance: object → TextInfo

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

Properties

public int
ANSICodePage
Gets the American National Standards Institute (ANSI) code page used by the writing system represented by the current <see cref="T:System.Globalization.TextInfo" /> .
public string
CultureName
Gets the name of the culture associated with the current <see cref="T:System.Globalization.TextInfo" /> object.
public int
EBCDICCodePage
Gets the Extended Binary Coded Decimal Interchange Code (EBCDIC) code page used by the writing system represented by the current <see cref="T:System.Globalization.TextInfo" /> .
public bool
IsReadOnly
Gets a value indicating whether the current <see cref="T:System.Globalization.TextInfo" /> object is read-only.
public bool
IsRightToLeft
Gets a value indicating whether the current <see cref="T:System.Globalization.TextInfo" /> object represents a writing system where text flows from right to left.
public int
LCID
Gets the culture identifier for the culture associated with the current <see cref="T:System.Globalization.TextInfo" /> object.
public string
ListSeparator
Gets or sets the string that separates items in a list.
public int
MacCodePage
Gets the Macintosh code page used by the writing system represented by the current <see cref="T:System.Globalization.TextInfo" /> .
public int
OEMCodePage
Gets the original equipment manufacturer (OEM) code page used by the writing system represented by the current <see cref="T:System.Globalization.TextInfo" /> .

Methods

public object
Clone​()
Returns A new instance of <see cref="T:System.Object" /> that is the memberwise clone of the current <see cref="T:System.Globalization.TextInfo" /> object.
Creates a new object that is a copy of the current <see cref="T:System.Globalization.TextInfo" /> object.
public bool
Equals​(object obj)
obj The object to compare with the current <see cref="T:System.Globalization.TextInfo" /> .
Returns <see langword="true" /> if <paramref name="obj" /> represents the same writing system as the current <see cref="T:System.Globalization.TextInfo" /> ; otherwise, <see langword="false" /> .
Determines whether the specified object represents the same writing system as the current <see cref="T:System.Globalization.TextInfo" /> object.
public int
GetHashCode​()
Returns A hash code for the current <see cref="T:System.Globalization.TextInfo" /> .
Serves as a hash function for the current <see cref="T:System.Globalization.TextInfo" /> , suitable for hashing algorithms and data structures, such as a hash table.
public char
ToLower​(char c)
c The character to convert to lowercase.
Returns The specified character converted to lowercase.
Converts the specified character to lowercase.
public string
ToLower​(string str)
str The string to convert to lowercase.
Returns The specified string converted to lowercase.
Converts the specified string to lowercase.
public string
ToString​()
Returns A string that represents the current <see cref="T:System.Globalization.TextInfo" /> .
Returns a string that represents the current <see cref="T:System.Globalization.TextInfo" /> .
public string
ToTitleCase​(string str)
str The string to convert to title case.
Returns The specified string converted to title case.
Converts the specified string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).
public char
ToUpper​(char c)
c The character to convert to uppercase.
Returns The specified character converted to uppercase.
Converts the specified character to uppercase.
public string
ToUpper​(string str)
str The string to convert to uppercase.
Returns The specified string converted to uppercase.
Converts the specified string to uppercase.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .