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

# StringList.set Method

Module: StringList

## Definition

Sets an item of the StringList object.

Python

    set(self, index: int, item: str) -> None

Parameters

> `index` int
> in Index of the item to set.
> `item` str
> in item to set.

Exceptions

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

Dart

    void set(int index, String? item)

Parameters

> `index` int
> in Index of the item to set.
> `item` String
> in item to set.

Exceptions

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

C#

    public void Set(int index, string item)

Parameters

> `index` int
> in Index of the item to set.
> `item` string
> in item to set.

Exceptions

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

Java

    public void set(int index, String item) throws DocumentException

Parameters

> `index` int
> in Index of the item to set.
> `item` String
> in item to set.

Exceptions

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

Swift

    public func set(index: Int32, item: String) throws

Parameters

> `index` Int32
> in Index of the item to set.
> `item` String
> in item to set.

Exceptions

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

C

    int id3DocumentStringList_Set (
        ID3_DOCUMENT_STRING_LIST hStringList,
        int index,
        const char * item)

Parameters

> `hStringList` ID3_DOCUMENT_STRING_LIST
> in Handle to the StringList object.
> `index` int
> in Index of the item to set.
> `item` const char *
> in item to set.

Returns

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