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

count

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

add

Adds an item to the StringList object.

addFirst

Inserts a new string at the beginning of the list, shifting existing elements one position towards the end.

clear

Clears the StringList object.

get

Gets an item of the StringList object.

getCount

Gets the number of elements in the StringList object.

removeAt

Removes an element of the StringList object.

resize

StringList object.

set

Sets an item of the StringList object.