MgStringCollection Class Reference
[MgStringCollection]
Inherits MgCollection.
Detailed Description
This class represents a collection of strings. The collection maintains its own copy of strings.
- Note:
- Collections are not thread safe and ordered in the sequence of add operation.
Public Member Functions | |
virtual void | Add (CREFSTRING value) |
Adds the specified item to the end of the collection. | |
virtual void | Clear () |
Removes all items from the collection. | |
virtual bool | Contains (CREFSTRING value) |
Returns true if the collection contains the specified item, false otherwise. | |
virtual INT32 | GetCount () const |
Gets the number of items in the collection. | |
virtual STRING | GetItem (INT32 index) const |
Gets the item in the collection at the specified index. | |
virtual INT32 | IndexOf (CREFSTRING value) |
Returns the index of the specified item in the collection or -1 if the item does not exist. | |
virtual void | Insert (INT32 index, CREFSTRING value) |
Inserts the specified item at the specified index position within the collection. Items following the insertion point are moved down to accommodate the new item. | |
MgStringCollection () | |
Constructs a StringCollection. The collection is initially empty. | |
virtual bool | Remove (CREFSTRING value) |
Removes the specified item from the collection. | |
virtual void | RemoveAt (INT32 index) |
Removes the specified item from the collection. | |
virtual void | SetItem (INT32 index, CREFSTRING value) |
Sets the item in the collection at the specified index position to the specified value. |