.. index:: 
  !PointList.clone Method
  
.. _id3_document_point_list_clone_class_method:

===============================================================================
PointList.clone Method
===============================================================================

Module: :ref:`PointList<id3_document_point_list_class>`

Definition
----------

Clones the PointList object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> PointList

      **Returns**

        .. line-block::

          :ref:`PointList<id3_document_point_list_class>`
          The newly created point 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

        PointList clone()

      **Returns**

        .. line-block::

          :ref:`PointList<id3_document_point_list_class>`
          The newly created point 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 PointList Clone()

      **Returns**

        .. line-block::

          :ref:`PointList<id3_document_point_list_class>`
          The newly created point 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 PointList clone() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`PointList<id3_document_point_list_class>`
          The newly created point 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 -> PointList

      **Returns**

        .. line-block::

          :ref:`PointList<id3_document_point_list_class>`
          The newly created point 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 id3DocumentPointList_CopyTo (
            ID3_DOCUMENT_POINT_LIST hPointList, 
            ID3_DOCUMENT_POINT_LIST hPointListDst)

      **Parameters**

        .. line-block::

          ``hPointList`` :ref:`ID3_DOCUMENT_POINT_LIST<id3_document_point_list_class>`
          :guilabel:`in` Handle to the PointList object.

          ``hPointListDst`` :ref:`ID3_DOCUMENT_POINT_LIST<id3_document_point_list_class>`
          :guilabel:`out` The newly created point list.


      **Returns**

        .. line-block::

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


