String Collection Class
A type-safe collection of String objects
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
[SerializableAttribute]
public class StringCollection : Collection<string>VB
<SerializableAttribute>
Public Class StringCollection
Inherits Collection(Of String)C++
[SerializableAttribute]
public ref class StringCollection : public Collection<String^>F#
[<SerializableAttribute>]
type StringCollection =
class
inherit Collection<string>
end- Inheritance
- Object CollectionString StringCollection
Constructors
| StringCollection | Default constructor |
| StringCollection(IEnumerableString) | Construct a collection from an enumerable list of String objects |
Properties
| Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionString) |
| Item | Gets or sets the element at the specified index. (Inherited from CollectionString) |
| Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionString) |
Methods
| Add | Adds an object to the end of the CollectionT. (Inherited from CollectionString) |
| AddRange | Add a range of String objects from an enumerable list |
| Clear | Removes all elements from the CollectionT. (Inherited from CollectionString) |
| ClearItems |
This is overridden to raise the ListChanged event
(Overrides CollectionTClearItems) |
| Contains | Determines whether an element is in the CollectionT. (Inherited from CollectionString) |
| CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionString) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionString) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionString) |
| Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionString) |
| InsertItem |
This is overridden to raise the ListChanged event
(Overrides CollectionTInsertItem(Int32, T)) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| OnListChanged | This raises the ListChanged event |
| Remove | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionString) |
| RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionString) |
| RemoveItem |
This is overridden to raise the ListChanged event
(Overrides CollectionTRemoveItem(Int32)) |
| RemoveRange | Remove a range of items from the collection |
| SetItem |
This is overridden to raise the ListChanged event
(Overrides CollectionTSetItem(Int32, T)) |
| Sort | This is used to sort the collection in ascending or descending order |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Events
| ListChanged | This event is raised when an item is added or removed from the list, when the list is cleared, and when an item is replaced in the list. |