.. index:: 
  !StringList.clone Method
  
.. _id3_document_string_list_clone_class_method:

===============================================================================
StringList.clone Method
===============================================================================

Module: :ref:`StringList<id3_document_string_list_class>`

Definition
----------

Clones the StringList object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> StringList

      **Returns**

        .. line-block::

          :ref:`StringList<id3_document_string_list_class>`
          The newly created string 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

        StringList clone()

      **Returns**

        .. line-block::

          :ref:`StringList<id3_document_string_list_class>`
          The newly created string 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 StringList Clone()

      **Returns**

        .. line-block::

          :ref:`StringList<id3_document_string_list_class>`
          The newly created string 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 StringList clone() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`StringList<id3_document_string_list_class>`
          The newly created string 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 -> StringList

      **Returns**

        .. line-block::

          :ref:`StringList<id3_document_string_list_class>`
          The newly created string 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 id3DocumentStringList_CopyTo (
            ID3_DOCUMENT_STRING_LIST hStringList, 
            ID3_DOCUMENT_STRING_LIST hStringListDst)

      **Parameters**

        .. line-block::

          ``hStringList`` :ref:`ID3_DOCUMENT_STRING_LIST<id3_document_string_list_class>`
          :guilabel:`in` Handle to the StringList object.

          ``hStringListDst`` :ref:`ID3_DOCUMENT_STRING_LIST<id3_document_string_list_class>`
          :guilabel:`out` The newly created string list.


      **Returns**

        .. line-block::

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


