.. index:: 
  !TextFieldList.clone Method
  
.. _id3_document_text_field_list_clone_class_method:

===============================================================================
TextFieldList.clone Method
===============================================================================

Module: :ref:`TextFieldList<id3_document_text_field_list_class>`

Definition
----------

Clones the TextFieldList object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> TextFieldList

      **Returns**

        .. line-block::

          :ref:`TextFieldList<id3_document_text_field_list_class>`
          The newly created text field list.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: Dart

        TextFieldList clone()

      **Returns**

        .. line-block::

          :ref:`TextFieldList<id3_document_text_field_list_class>`
          The newly created text field list.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: C#

        public TextFieldList Clone()

      **Returns**

        .. line-block::

          :ref:`TextFieldList<id3_document_text_field_list_class>`
          The newly created text field list.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: Java

        public TextFieldList clone() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`TextFieldList<id3_document_text_field_list_class>`
          The newly created text field list.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: Swift

        public func clone() throws -> TextFieldList

      **Returns**

        .. line-block::

          :ref:`TextFieldList<id3_document_text_field_list_class>`
          The newly created text field list.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


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

      .. code:: C

        int id3DocumentTextFieldList_CopyTo (
            ID3_DOCUMENT_TEXT_FIELD_LIST hTextFieldList, 
            ID3_DOCUMENT_TEXT_FIELD_LIST hTextFieldListDst)

      **Parameters**

        .. line-block::

          ``hTextFieldList`` :ref:`ID3_DOCUMENT_TEXT_FIELD_LIST<id3_document_text_field_list_class>`
          :guilabel:`in` Handle to the TextFieldList object.

          ``hTextFieldListDst`` :ref:`ID3_DOCUMENT_TEXT_FIELD_LIST<id3_document_text_field_list_class>`
          :guilabel:`out` The newly created text field list.


      **Returns**

        .. line-block::

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


