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 : Implements System.Runtime.Serialization.IDeserializationCallback ' Public Instance Properties Overridable Public ReadOnly Property ANSICodePage As Integer Overridable Public ReadOnly Property EBCDICCodePage As Integer Overridable Public ReadOnly Property ListSeparator As String Overridable Public ReadOnly Property MacCodePage As Integer Overridable Public ReadOnly Property OEMCodePage As Integer ' Public Instance Methods Overrides Public Function Equals( ByVal obj As Object) As Boolean Overrides Public Function GetHashCode() As Integer Overridable Public Function ToLower( ByVal c As Char) As Char Overridable Public Function ToLower( ByVal str As String) As String Overrides Public Function ToString() As String Public Function ToTitleCase(ByVal str As String) As String Overridable Public Function ToUpper( ByVal c As Char) As Char Overridable Public Function ToUpper( ByVal str As String) As String End Class
Returned By
CultureInfo.TextInfo
Get VB.NET Core Classes in a Nutshell 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.