Public Shared Function Compare ( strA As String, strB As String ) As Integer |
比较两个指定的字符串对象并返回一个整数,该整数指示它们在排序顺序中的相对位置。 |
Public Shared Function Compare ( strA As String, strB As String, ignoreCase As Boolean ) As Integer |
比较两个指定的字符串对象并返回一个整数,该整数指示它们在排序顺序中的相对位置。但是,如果布尔参数为真,则忽略大小写。 |
Public Shared Function Concat ( str0 As String, str1 As String ) As String |
连接两个字符串对象。 |
Public Shared Function Concat ( str0 As String, str1 As String, str2 As String ) As String |
连接三个字符串对象。 |
Public Shared Function Concat (str0 As String, str1 As String, str2 As String, str3 As String ) As String |
连接四个字符串对象。 |
Public Function Contains ( value As String ) As Boolean |
返回一个值,该值指示指定的字符串对象是否出现在此字符串中。 |
Public Shared Function Copy ( str As String ) As String |
创建与指定字符串具有相同值的新字符串对象。 |
pPublic Sub CopyTo ( sourceIndex As Integer, destination As Char(), destinationIndex As Integer, count As Integer ) |
将指定数目的字符从字符串对象的指定位置复制到Unicode字符数组中的指定位置。 |
Public Function EndsWith ( value As String ) As Boolean |
确定字符串对象的结尾是否与指定的字符串匹配。 |
Public Function Equals ( value As String ) As Boolean |
确定当前字符串对象和指定的字符串对象是否具有相同的值。 |
Public Shared Function Equals ( a As String, b As String ) As Boolean |
确定两个指定的字符串对象是否具有相同的值。 |
Public Shared Function Format ( format As String, arg0 As Object ) As String |
将指定字符串中的一个或多个格式项替换为指定对象的字符串表示形式。 |
Public Function IndexOf ( value As Char ) As Integer |
返回指定的Unicode字符在当前字符串中的第一个匹配项的从零开始的索引。 |
Public Function IndexOf ( value As String ) As Integer |
返回指定字符串在此实例中的第一个匹配项的从零开始的索引。 |
Public Function IndexOf ( value As Char, startIndex As Integer ) As Integer |
返回此字符串中指定的Unicode字符第一次出现的从零开始的索引,从指定的字符位置开始搜索。 |
Public Function IndexOf ( value As String, startIndex As Integer ) As Integer |
返回指定字符串在此实例中第一次出现的从零开始的索引,从指定的字符位置开始搜索。 |
Public Function IndexOfAny ( anyOf As Char() ) As Integer |
返回指定的Unicode字符数组中任何字符在此实例中第一次出现的从零开始的索引。 |
Public Function IndexOfAny ( anyOf As Char(), startIndex As Integer ) As Integer |
返回指定的Unicode字符数组中任何字符在此实例中第一次出现的从零开始的索引,从指定的字符位置开始搜索。 |
Public Function Insert ( startIndex As Integer, value As String ) As String |
返回一个新字符串,其中指定的字符串插入到当前字符串对象的指定索引位置。 |
Public Shared Function IsNullOrEmpty ( value As String ) As Boolean |
指示指定的字符串是空字符串还是空字符串。 |
Public Shared Function Join ( separator As String, ParamArray value As String() ) As String |
连接字符串数组的所有元素,并在每个元素之间使用指定的分隔符。 |
Public Shared Function Join ( separator As String, value As String(), startIndex As Integer, count As Integer ) As String |
连接字符串数组的指定元素,并在每个元素之间使用指定的分隔符。 |
Public Function LastIndexOf ( value As Char ) As Integer |
返回指定的Unicode字符在当前字符串对象中最后一次出现的从零开始的索引位置。 |
Public Function LastIndexOf ( value As String ) As Integer |
返回指定字符串在当前字符串对象中最后一次出现的从零开始的索引位置。 |
Public Function Remove ( startIndex As Integer ) As String |
删除当前实例中的所有字符,从指定位置开始,一直到最后一个位置,并返回字符串。 |
Public Function Remove ( startIndex As Integer, count As Integer ) As String |
移除当前字符串中从指定位置开始的指定数目的字符,并返回该字符串。 |
Public Function Replace ( oldChar As Char, newChar As Char ) As String |
将当前字符串对象中出现的所有指定的Unicode字符替换为指定的Unicode字符,并返回新的字符串。 |
Public Function Replace ( oldValue As String, newValue As String ) As String |
将当前字符串对象中出现的指定字符串替换为指定字符串并返回新的字符串。 |
Public Function Split ( ParamArray separator As Char() ) As String() |
返回一个字符串数组,该数组包含当前字符串对象中的子字符串,由指定的Unicode字符数组的元素分隔。 |
Public Function Split ( separator As Char(), count As Integer ) As String() |
返回一个字符串数组,该数组包含当前字符串对象中的子字符串,由指定的Unicode字符数组的元素分隔。int参数指定要返回的子字符串的最大数目。 |
Public Function StartsWith ( value As String ) As Boolean |
确定此字符串实例的开头是否与指定的字符串匹配。 |
Public Function ToCharArray As Char() |
返回包含当前字符串对象中的所有字符的Unicode字符数组。 |
Public Function ToCharArray ( startIndex As Integer, length As Integer ) As Char() |
返回包含当前字符串对象中的所有字符的Unicode字符数组,从指定的索引开始,直到指定的长度。 |
Public Function ToLower As String |
返回转换为小写的字符串的副本。 |
Public Function ToUpper As String |
返回转换成大写的字符串的副本。 |
Public Function Trim As String |
从当前字符串对象中删除所有前导和末尾的空白字符。 |