UIStringCollection

UIString item collection

Based on array.

Members

Functions

add
void add(string item, int index = -1)

Insert resource id item into specified position

add
void add(dstring item, int index = -1)

Insert unicode string item into specified position

add
void add(UIString item, int index = -1)

Insert UIString item into specified position

addAll
void addAll(ref UIStringCollection items)

Append UIStringCollection

addAll
void addAll(string[] items)

Append array of string resource IDs

addAll
void addAll(dstring[] items)

Append array of unicode strings

clear
void clear()

Remove all items

get
dstring get(size_t index)

Return unicode string for item by index

indexOf
int indexOf(dstring str)

Return index of first item with specified text or -1 if not found.

indexOf
int indexOf(string strId)

Return index of first item with specified string resource id or -1 if not found.

indexOf
int indexOf(UIString str)

Return index of first item with specified string or -1 if not found.

opAssign
void opAssign(ref UIStringCollection items)

Assign UIStringCollection

opAssign
void opAssign(string[] items)

Assign array of string resource IDs

opAssign
void opAssign(dstring[] items)

Assign array of unicode strings

opIndex
UIString[] opIndex()

Slice

opIndex
UIString opIndex(size_t index)

Read item by index

opIndexAssign
UIString opIndexAssign(UIString value, size_t index)

Modify item by index

opSlice
UIString[] opSlice()

Slice

opSlice
UIString[] opSlice(size_t start, size_t end)

Slice

remove
void remove(int index)

Remove item with specified index

Properties

length
int length [@property getter]

Returns number of items

Meta