.. index:: 
  !TextField.clone Method
  
.. _id3_document_text_field_clone_class_method:

===============================================================================
TextField.clone Method
===============================================================================

Module: :ref:`TextField<id3_document_text_field_class>`

Definition
----------

Clones the TextField object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> TextField

      **Returns**

        .. line-block::

          :ref:`TextField<id3_document_text_field_class>`
          The newly created text field.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        TextField clone()

      **Returns**

        .. line-block::

          :ref:`TextField<id3_document_text_field_class>`
          The newly created text field.

      **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 TextField Clone()

      **Returns**

        .. line-block::

          :ref:`TextField<id3_document_text_field_class>`
          The newly created text field.

      **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 TextField clone() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`TextField<id3_document_text_field_class>`
          The newly created text field.

      **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 -> TextField

      **Returns**

        .. line-block::

          :ref:`TextField<id3_document_text_field_class>`
          The newly created text field.

      **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 id3DocumentTextField_CopyTo (
            ID3_DOCUMENT_TEXT_FIELD hTextField, 
            ID3_DOCUMENT_TEXT_FIELD hTextFieldDst)

      **Parameters**

        .. line-block::

          ``hTextField`` :ref:`ID3_DOCUMENT_TEXT_FIELD<id3_document_text_field_class>`
          :guilabel:`in` Handle to the TextField object.

          ``hTextFieldDst`` :ref:`ID3_DOCUMENT_TEXT_FIELD<id3_document_text_field_class>`
          :guilabel:`out` The newly created text field.


      **Returns**

        .. line-block::

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


