You are on page 1of 1
Length property string.Length stores the number of characters contained in a string Trim method ‘string Trim trimChars)] removes characters from both the beginning and end of a string TrimStart method string TrimStart\(trimChars)] removes characters from the beginning of a string TrimEnd method ‘string TrimEndl{trimChars)) removes characters from the end ofa string Remove method stringRemove(startindex, removes characters from anywhere count) ina string Replace method string Replace(oidValve, Teplaces all occurrences of a newValue) sequence of characters in a string with another sequence of characters Mid statement targetString, start(, replaces a specific number of count)) = replacementString characters in a string with characters ‘rom another string PadLeit method string PadLeft /engtH, pads the beginning ofa string with character\) a character until the string is a specified length PadRight method string.PadRight(lengthl, pads the end of a string with a character\) character until the string is a specified length Insert method string nsent(startindex, value) inserts characters within a string Startswith String StartsWith\ subString) determines whether a string begins method «with a specific sequence of characters EndsWith method | string ndsWith(substring) determines whether a string ends ‘with a specific sequence of characters Contains method ‘string Contains\ subString) determines whether a string conteins 4 spocific sequence of characters; feturns a Boolean value IndexOf method string ndexOf{subStringl, determines whether a string contains startindex)) a specific sequence of characters; retums an integer that indicates the starting position of the characters ‘Substring method | string Substringlstartindexl, ‘accesses one or more characters count) contained in a string String Compare String Compare(string!, ‘compares two strings method string2l, ignoreCasel) Like operator string Like pattern ‘compares two strings using pattern- matching characters BOS SEP string] operator string2 compares two strings

You might also like