Public Member Functions | |
void | Add (wxString toadd) |
void | Add (string toadd) |
void | Add (IEnumerable toadd) |
ArrayString (IEnumerable elems) | |
ArrayString () | |
ArrayString (IntPtr wxObject) | |
void | Clear () |
override void | Dispose () |
int | Index (wxString lookForThisEntry, bool bCase, bool bFromEnd) |
int | Index (string lookForThisEntry, bool bCase, bool bFromEnd) |
int | Index (string lookForThisEntry, bool bCase) |
int | Index (string lookForThisEntry) |
void | Remove (wxString what) |
void | Remove (string what) |
void | RemoveAt (int pos) |
void | Sort (bool reversed) |
void | Sort () |
string[] | ToArray () |
Static Public Member Functions | |
static implicit | operator string[] (ArrayString ars) |
static ArrayString | SafeNewFrom (IEnumerable elems) |
Properties | |
int | Count [get] |
string | this [int num] [get] |
wx.ArrayString.ArrayString | ( | IntPtr | wxObject | ) |
wx.ArrayString.ArrayString | ( | ) |
wx.ArrayString.ArrayString | ( | IEnumerable | elems | ) |
Generates an instance comprising the items of the argument. All items of the argument shall be strings. Otherwise, this method will throw an dynamic type error. The argument may also be null
. In this case, this is equivalent to the default constructor (generate an instance of size 0).
void wx.ArrayString.Add | ( | wxString | toadd | ) |
void wx.ArrayString.Add | ( | string | toadd | ) |
void wx.ArrayString.Add | ( | IEnumerable | toadd | ) |
This will add the elements of the collection. This will throw an exception of the collection contains non-strings.
void wx.ArrayString.Clear | ( | ) |
override void wx.ArrayString.Dispose | ( | ) | [virtual] |
Reimplemented from wx.Object.
int wx.ArrayString.Index | ( | wxString | lookForThisEntry, | |
bool | bCase, | |||
bool | bFromEnd | |||
) |
Search the element in the array, starting from the beginning if bFromEnd
is false or from end otherwise. If bCase
, comparison is case sensitive (default), otherwise the case is ignored.
This function uses linear search for ArrayString
and binary search for SortedArrayString
, but it ignores the bCase
and bFromEnd
parameters in the latter case.
Returns index of the first item matched or -1 if there is no match.
int wx.ArrayString.Index | ( | string | lookForThisEntry, | |
bool | bCase, | |||
bool | bFromEnd | |||
) |
int wx.ArrayString.Index | ( | string | lookForThisEntry, | |
bool | bCase | |||
) |
int wx.ArrayString.Index | ( | string | lookForThisEntry | ) |
This will return the first index of string lookForThisEntry
or -1 is this string is not in the array.
static implicit wx.ArrayString.operator string[] | ( | ArrayString | ars | ) | [static] |
void wx.ArrayString.Remove | ( | wxString | what | ) |
void wx.ArrayString.Remove | ( | string | what | ) |
void wx.ArrayString.RemoveAt | ( | int | pos | ) |
static ArrayString wx.ArrayString.SafeNewFrom | ( | IEnumerable | elems | ) | [static] |
This is a safe alternative for the corresponding CTor. Safe means here: If the argument is null
, the result is also null
without any exceptions.
void wx.ArrayString.Sort | ( | bool | reversed | ) |
Sorts the entry (optionally in reversed order).
void wx.ArrayString.Sort | ( | ) |
string [] wx.ArrayString.ToArray | ( | ) |
int wx.ArrayString.Count [get] |
string wx.ArrayString.this[int num] | ( | ) | [get] |
Access string num
of the array. Will cause an assert error on illegal indices.