NB: This class is obsolete, please don't use it any longer. You can use either wxArrayString or a type safe list class instead.
A string list is a list which is assumed to contain strings. Memory is allocated when strings are added to the list, and deallocated by the destructor or by the Delete member.
Derived from
Include files
<wx/list.h>
See also
Members
wxStringList::wxStringList
wxStringList::~wxStringList
wxStringList::Add
wxStringList::Clear
wxStringList::Delete
wxStringList::ListToArray
wxStringList::Member
wxStringList::Sort
wxStringList()
Constructor.
void wxStringList(char* first, ...)
Constructor, taking NULL-terminated string argument list. wxStringList allocates memory for the strings.
~wxStringList()
Deletes string list, deallocating strings.
wxNode * Add(const wxString& s)
Adds string to list, allocating memory.
void Clear()
Clears all strings from the list.
void Delete(const wxString& s)
Searches for string and deletes from list, deallocating memory.
char* ListToArray(bool new_copies = false)
Converts the list to an array of strings, only allocating new memory if new_copies is true.
bool Member(const wxString& s)
Returns true if s is a member of the list (tested using strcmp).
void Sort()
Sorts the strings in ascending alphabetical order. Note that all nodes (but not strings) get deallocated and new ones allocated.