StringList Class¶
Namespace: id3.Devices
Definition¶
Facilitates the management of collections of strings, enabling operations such as adding strings to the list.
It acts as a dynamic array of strings, offering functionality that extends beyond basic array operations by allowing for specific manipulations of string collections.
class StringList
class StringList implements Finalizable
public partial class StringList
public class StringList implements AutoCloseable, Serializable
typedef struct id3DevicesStringList *ID3_DEVICES_STRING_LIST;
Usage¶
stringListInstance = StringList()
# ...
Explicit destruction
# ...
del stringListInstance
final stringListInstance = sdk.StringList();
// ...
Explicit destruction
// ...
stringListInstance.dispose()
using (var stringListInstance = new StringList())
{
// ...
}
Explicit destruction
var stringListInstance = new StringList()
// ...
stringListInstance.Dispose()
try (StringList stringListInstance = new StringList()) {
// ...
}
Explicit destruction
StringList stringListInstance = new StringList();
// ...
stringListInstance.close();
ID3_DEVICES_STRING_LIST hStringList{};
int err = id3DevicesStringList_Initialize(&hStringList);
if (err == ID3_SUCCESS) {
// ...
id3DevicesStringList_Dispose(&hStringList);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Gets the number of elements contained in the list |
|
operator [int index] |
string |
Gets or sets the element at the specified index in the list. |
Iteration¶
This class supports iteration in Dart, C#, Java and Python.
Methods¶
Name |
Description |
---|---|
Adds an item to the StringList object. |
|
Inserts a new string at the beginning of the list, shifting existing elements one position towards the end. |
|
Clears the StringList object. |
|
Gets an item of the StringList object. |
|
Gets the number of elements in the StringList object. |
|
Removes an element of the StringList object. |
|
StringList object. |
|
Sets an item of the StringList object. |