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

# StringList.add Method

Module: StringList

## Definition

Adds an item to the StringList object.

Python

    add(self, item: str) -> None

Parameters

> `item` str
> in item to add.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    void add(String? item)

Parameters

> `item` String
> in item to add.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public void Add(string item)

Parameters

> `item` string
> in item to add.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public void add(String item) throws DocumentException

Parameters

> `item` String
> in item to add.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public func add(item: String) throws

Parameters

> `item` String
> in item to add.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentStringList_Add (
        ID3_DOCUMENT_STRING_LIST hStringList,
        const char * item)

Parameters

> `hStringList` ID3_DOCUMENT_STRING_LIST
> in Handle to the StringList object.
> `item` const char *
> in item to add.

Returns

> `int`
> An error code.
> See id3DocumentError file for the list of possible error codes.