.. index:: 
  !TextFieldList Class

.. _id3_document_text_field_list_class:

===============================================================================
TextFieldList Class
===============================================================================

Namespace: :ref:`id3.Document<reference_document>`

.. toctree::
  :hidden:

  add<add>
  clear<clear>
  clone<clone>
  count<count>
  get<get>
  getCount<get_count>
  removeAt<remove_at>
  resize<resize>
  set<set>


Definition
----------
.. line-block::
    Represents a list of text fields extracted from a document.

.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        class TextFieldList

    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        class TextFieldList implements Finalizable

    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public partial class TextFieldList

    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public class TextFieldList implements AutoCloseable, Serializable

    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public class TextFieldList

    .. tab-item:: C
      :sync: C

      .. code:: C

        typedef struct id3DocumentTextFieldList *ID3_DOCUMENT_TEXT_FIELD_LIST;



Usage
-----

.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        textFieldListInstance = TextFieldList()
        # ...

      **Explicit destruction**

      .. code:: Python

        # ...
        del textFieldListInstance

    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        final textFieldListInstance = sdk.TextFieldList();
        // ...

      **Explicit destruction**

      .. code:: Dart

        // ...
        textFieldListInstance.dispose()

    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        using (var textFieldListInstance = new TextFieldList())
        {
           // ...
        }

      **Explicit destruction**

      .. code:: C#

        var textFieldListInstance = new TextFieldList()
        // ...
        textFieldListInstance.Dispose()

    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        try (TextFieldList textFieldListInstance = new TextFieldList()) {
        // ...
        }

      **Explicit destruction**

      .. code:: Java

        TextFieldList textFieldListInstance = new TextFieldList();
        // ...
        textFieldListInstance.close();

    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        private var textFieldListInstance: TextFieldList? = nil
        textFieldListInstance = try TextFieldList()

    .. tab-item:: C
      :sync: C

      .. code:: C

        ID3_DOCUMENT_TEXT_FIELD_LIST hTextFieldList{};
        int err = id3DocumentTextFieldList_Initialize(&hTextFieldList);
        if (err == ID3_SUCCESS) {
            // ...
            id3DocumentTextFieldList_Dispose(&hTextFieldList);
        }


Properties
----------

.. list-table:: 
  :width: 100%
  :widths: 30 5 65
  :header-rows: 1

  * - Name
    - Type
    - Description
  * - :ref:`count<id3_document_text_field_list_count_class_member>`
    - int
    - Gets the number of elements contained in the list
  * - operator [int index]
    - :ref:`TextField<id3_document_text_field_class>`
    - Gets or sets the element at the specified index in the list.

Iteration
---------

This class supports iteration in Dart, C#, Java and Python.


Methods
-------

.. list-table:: 
  :width: 100%
  :widths: 30 70
  :header-rows: 1

  * - Name
    - Description
  * - :ref:`add<id3_document_text_field_list_add_class_method>`
    - Adds an item to the TextFieldList object.
  * - :ref:`clear<id3_document_text_field_list_clear_class_method>`
    - Clears the TextFieldList object.
  * - :ref:`clone<id3_document_text_field_list_clone_class_method>`
    - Clones the TextFieldList object.
  * - :ref:`get<id3_document_text_field_list_get_class_method>`
    - Gets an item of the TextFieldList object.
  * - :ref:`getCount<id3_document_text_field_list_get_count_class_method>`
    - Gets the number of elements in the TextFieldList object.
  * - :ref:`removeAt<id3_document_text_field_list_remove_at_class_method>`
    - Removes an element of the TextFieldList object.
  * - :ref:`resize<id3_document_text_field_list_resize_class_method>`
    - TextFieldList object.
  * - :ref:`set<id3_document_text_field_list_set_class_method>`
    - Sets an item of the TextFieldList object.
