.. index:: 
  !TrackedFaceList.set Method
  
.. _id3_face_tracked_face_list_set_class_method:

===============================================================================
TrackedFaceList.set Method
===============================================================================

Module: :ref:`TrackedFaceList<id3_face_tracked_face_list_class>`

Definition
----------

Sets an item of the TrackedFaceList object.


.. tab-set::

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

      .. code:: Python

        set(self, index: int, tracked_face_item: TrackedFace) -> None

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the TrackedFace item to set.

          ``tracked_face_item`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Dart

        void set(int index, TrackedFace trackedFaceItem)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the TrackedFace item to set.

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C#

        public void Set(int index, TrackedFace trackedFaceItem)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the TrackedFace item to set.

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Java

        public void set(int index, TrackedFace trackedFaceItem) throws FaceException

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the TrackedFace item to set.

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Swift

        public func set(index: Int32, trackedFaceItem: TrackedFace) throws

      **Parameters**

        .. line-block::

          ``index`` Int32
          :guilabel:`in` Index of the TrackedFace item to set.

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C

        int id3TrackedFaceList_Set (
            ID3_TRACKED_FACE_LIST hTrackedFaceList, 
            int index, 
            ID3_TRACKED_FACE hTrackedFaceItem)

      **Parameters**

        .. line-block::

          ``hTrackedFaceList`` :ref:`ID3_TRACKED_FACE_LIST<id3_face_tracked_face_list_class>`
          :guilabel:`in` Handle to the TrackedFaceList object.

          ``index`` int
          :guilabel:`in` Index of the TrackedFace item to set.

          ``hTrackedFaceItem`` :ref:`ID3_TRACKED_FACE<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to set.


      **Returns**

        .. line-block::

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


