String

Description

The String class represents string data type.

Methods of the String Class

  Method name Brief description
The Concat method combines two specified substrings into one string.
The Format method returns the string formatted according to the specified instructions.
The Insert method inserts a substring into the specified place of the source string.
The Join method combines the values of all the elements of the specified array into one string, using the specified delimiter.
The PadLeft method adds the specified number of the specified characters to the left of the source string.
The PadRight method adds the specified number of the specified characters to the right of the source string.
The Remove method deletes the specified number of characters, starting from the specified position in the source string.
The Replace method searches for the specified substring in the source string and replaces it with a new value.
The ToLower method makes all the characters of the specified string lowercase.
The ToUpper method makes all the characters of the specified string uppercase.
The Trim method deletes all the spaces from the beginning and the end of the specified string.
The TrimEnd method deletes all the spaces from the end of the specified string.
The TrimStart method deletes all the spaces from the beginning of the specified string.

Properties of Variables of the String Type

  Property name Brief description
The Chars property returns a character from the character string.
The Length property returns the length of the character string in the variable.

Methods of Variables of the String Type

  Method name Brief description
The Copy method creates a copy of the value of the current string.
The EndsWith method checks if the current string ends with the specified character string.
The IndexOf method returns the index of the first occurrence of the specified substring in the current string.
The IndexOfAny method returns the index of the first occurrence of any of characters of the specified substring in the current string.
The IsEmpty method returns the attribute of empty variable value.
The LastOndexOf method returns the index of the last occurrence of the specified substring in the current string.
The LastOndexOfAny method returns the index of the last occurrence of any of the characters of the specified substring in the current string.
The Split method splits the current string into a character substring array, using the specified delimiter.
The StartsWith method checks if the current string begins with the specified string of characters.
The SubString method returns a substring from the current string.

See also:

System Assembly Classes