Strings Methods
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The Strings type exposes the following members.
Methods
Name | Description | |
---|---|---|
AscW(Char) | Returns an Integer value representing the character code corresponding to a character. | |
AscW(String) | Returns an Integer value representing the character code corresponding to a character. | |
ChrW | Returns the character associated with the specified character code. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Filter(array<Object[], String, Boolean, CompareMethod) | Returns a zero-based array containing a subset of a String array based on specified filter criteria. | |
Filter(array<String[], String, Boolean, CompareMethod) | Returns a zero-based array containing a subset of a String array based on specified filter criteria. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
Format | Returns a string formatted according to instructions contained in a format String expression. | |
FormatCurrency | Returns an expression formatted as a currency value using the currency symbol defined in the system control panel. | |
FormatDateTime | Returns a string expression representing a date/time value. | |
FormatNumber | Returns an expression formatted as a number. | |
FormatPercent | Returns an expression formatted as a percentage (that is, multiplied by 100) with a trailing % character. | |
GetChar | Returns a Char value representing the character from the specified index in the supplied string. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InStr(String, String, CompareMethod) | Returns an integer specifying the start position of the first occurrence of one string within another. | |
InStr(Int32, String, String, CompareMethod) | Returns an integer specifying the start position of the first occurrence of one string within another. | |
InStrRev | Returns the position of the first occurrence of one string within another, starting from the right side of the string. | |
Join(array<Object[], String) | Returns a string created by joining a number of substrings contained in an array. | |
Join(array<String[], String) | Returns a string created by joining a number of substrings contained in an array. | |
LCase(Char) | Returns a string or character converted to lowercase. | |
LCase(String) | Returns a string or character converted to lowercase. | |
Left | Returns a string containing a specified number of characters from the left side of a string. | |
Len | Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable. | |
LSet | Returns a left-aligned string containing the specified string adjusted to the specified length. | |
LTrim | Returns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim). | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Mid(String, Int32) | Returns a string containing a specified number of characters from a string. | |
Mid(String, Int32, Int32) | Returns a string containing a specified number of characters from a string. | |
Replace | Returns a string in which a specified substring has been replaced with another substring a specified number of times. | |
Right | Returns a string containing a specified number of characters from the right side of a string. | |
RSet | Returns a right-aligned string containing the specified string adjusted to the specified length. | |
RTrim | Returns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim). | |
Space | Returns a string consisting of the specified number of spaces. | |
Split | Returns a zero-based, one-dimensional array containing a specified number of substrings. | |
StrComp | Returns -1, 0, or 1, based on the result of a string comparison. | |
StrDup(Int32, Char) | Returns a string or object consisting of the specified character repeated the specified number of times. | |
StrDup(Int32, Object) | Returns a string or object consisting of the specified character repeated the specified number of times. | |
StrDup(Int32, String) | Returns a string or object consisting of the specified character repeated the specified number of times. | |
StrReverse | Returns a string in which the character order of a specified string is reversed. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Trim | Returns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim). | |
UCase(Char) | Returns a string or character containing the specified string converted to uppercase. | |
UCase(String) | Returns a string or character containing the specified string converted to uppercase. |
Top