.. index:: 
  !DocumentInfo.clone Method
  
.. _id3_document_document_info_clone_class_method:

===============================================================================
DocumentInfo.clone Method
===============================================================================

Module: :ref:`DocumentInfo<id3_document_document_info_class>`

Definition
----------

Clones the DocumentInfo object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> DocumentInfo

      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          The newly created document info.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        DocumentInfo clone()

      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          The newly created document info.

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

      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          The newly created document info.

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

      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          The newly created document info.

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

      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          The newly created document info.

      **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 id3DocumentInfo_CopyTo (
            ID3_DOCUMENT_INFO hDocumentInfo, 
            ID3_DOCUMENT_INFO hDocumentInfoDst)

      **Parameters**

        .. line-block::

          ``hDocumentInfo`` :ref:`ID3_DOCUMENT_INFO<id3_document_document_info_class>`
          :guilabel:`in` Handle to the DocumentInfo object.

          ``hDocumentInfoDst`` :ref:`ID3_DOCUMENT_INFO<id3_document_document_info_class>`
          :guilabel:`out` The newly created document info.


      **Returns**

        .. line-block::

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


