StringList Methods |
The StringList type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Adds a new string to the end of the string list.
| |
Contains |
Checks if the string is in the list.
| |
GetRange |
Gets a part of the string list.
| |
IndexOf(String) |
Gets the index of the specified string.
| |
IndexOf(String, Int32) |
Gets the index of the specified string between the index to start
the search from and the end of the list.
| |
IndexOf(String, Int32, Int32) |
Gets the index of the specified string between the index to start the search from and startIndex + count.
| |
Insert |
Inserts the string to the specified index.
| |
IsEqual |
Compares the current object with an object of the same type.
| |
LastIndexOf(String) |
Searches for the last occurence of the string in the list.
| |
LastIndexOf(String, Int32) |
Searches for the last occurence of the string in the list.
| |
LastIndexOf(String, Int32, Int32) |
Searches for the last occurence of the string in the list.
| |
Remove |
Removes the first occurence of the string from the list.
| |
RemoveRange |
Removes a range of items starting from the given index.
| |
ToArray |
Copies the strings to a string array.
|
See Also