#TopCollection
##Properties
| Datatype | Property name | Property description | Default Value |
|---|---|---|---|
| Int32 | Count | Gets the number of strings contained in the System.Collections.Specialized.StringCollection. | 0 |
| Boolean | IsReadOnly | Gets a value indicating whether the System.Collections.Specialized.StringCollection is read-only. | False |
| Boolean | IsSynchronized | Gets a value indicating whether access to the System.Collections.Specialized.StringCollection is synchronized (thread safe). | False |
| String | Item | null | |
| Object | SyncRoot | Gets an object that can be used to synchronize access to the System.Collections.Specialized.StringCollection. | null |
##Methods
###Add(System.String)
Parameters:
- System.String obj
###Add(System.String) Adds a string to the end of the System.Collections.Specialized.StringCollection.
Parameters:
- System.String value - The string to add to the end of the System.Collections.Specialized.StringCollection. The value can be null.
Returns:
The zero-based index at which the new element is inserted.
###AddRange(System.String[]) Copies the elements of a string array to the end of the System.Collections.Specialized.StringCollection.
Parameters:
- System.String[] value - An array of strings to add to the end of the System.Collections.Specialized.StringCollection. The array itself can not be null but it can contain elements that are null.
###Clear() Removes all the strings from the System.Collections.Specialized.StringCollection.
###Contains(System.String) Determines whether the specified string is in the System.Collections.Specialized.StringCollection.
Parameters:
- System.String value - The string to locate in the System.Collections.Specialized.StringCollection. The value can be null.
###CopyTo(System.String[],System.Int32) Copies the entire System.Collections.Specialized.StringCollection values to a one-dimensional array of strings, starting at the specified index of the target array.
Parameters:
- System.String[] array - The one-dimensional array of strings that is the destination of the elements copied from System.Collections.Specialized.StringCollection. The System.Array must have zero-based indexing.
- System.Int32 index - The zero-based index in
###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.
Parameters:
- System.Object obj - The System.Object to compare with the current System.Object.
Returns:
true if the specified System.Object is equal to the current System.Object; otherwise, false.
###GetEnumerator() Returns a System.Collections.Specialized.StringEnumerator that iterates through the System.Collections.Specialized.StringCollection.
Returns:
A System.Collections.Specialized.StringEnumerator for the System.Collections.Specialized.StringCollection.
###GetHashCode() Serves as a hash function for a particular type.
Returns:
A hash code for the current System.Object.
###GetType() Gets the System.Type of the current instance.
Returns:
The System.Type instance that represents the exact runtime type of the current instance.
###IndexOf(System.String) Searches for the specified string and returns the zero-based index of the first occurrence within the System.Collections.Specialized.StringCollection.
Parameters:
- System.String value - The string to locate. The value can be null.
###Insert(System.Int32,System.String)
Parameters:
- System.Int32 index
- System.String obj
###Insert(System.Int32,System.String) Inserts a string into the System.Collections.Specialized.StringCollection at the specified index.
Parameters:
- System.Int32 index - The zero-based index at which
- System.String value - The string to insert. The value can be null.
###Remove(System.String)
Parameters:
- System.String obj
###Remove(System.String) Removes the first occurrence of a specific string from the System.Collections.Specialized.StringCollection.
Parameters:
- System.String value - The string to remove from the System.Collections.Specialized.StringCollection. The value can be null.
###RemoveAt(System.Int32) Removes the string at the specified index of the System.Collections.Specialized.StringCollection.
Parameters:
- System.Int32 index - The zero-based index of the string to remove.
###ToString() Returns a System.String that represents the current System.Object.
Returns:
A System.String that represents the current System.Object.
