Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# StringList Class

Namespace: id3.Document

## Definition

Represents a string lists.
Python

    class StringList

Dart

    class StringList implements Finalizable

C#

    public partial class StringList

Java

    public class StringList implements AutoCloseable, Serializable

Swift

    public class StringList

C

    typedef struct id3DocumentStringList *ID3_DOCUMENT_STRING_LIST;

## Usage

Python

    stringListInstance = StringList()
    # ...

Explicit destruction

    # ...
    del stringListInstance

Dart

    final stringListInstance = sdk.StringList();
    // ...

Explicit destruction

    // ...
    stringListInstance.dispose()

C#

    using (var stringListInstance = new StringList())
    {
       // ...
    }

Explicit destruction

    var stringListInstance = new StringList()
    // ...
    stringListInstance.Dispose()

Java

    try (StringList stringListInstance = new StringList()) {
    // ...
    }

Explicit destruction

    StringList stringListInstance = new StringList();
    // ...
    stringListInstance.close();

Swift

    private var stringListInstance: StringList? = nil
    stringListInstance = try StringList()

C

    ID3_DOCUMENT_STRING_LIST hStringList{};
    int err = id3DocumentStringList_Initialize(&hStringList);
    if (err == ID3_SUCCESS) {
        // ...
        id3DocumentStringList_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.
clear | Clears the StringList object.
clone | Clones 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.