.. index:: 
  !DetectedFaceList.set Method
  
.. _id3_face_detected_face_list_set_class_method:

===============================================================================
DetectedFaceList.set Method
===============================================================================

Module: :ref:`DetectedFaceList<id3_face_detected_face_list_class>`

Definition
----------

Sets an item of the DetectedFaceList object.


.. tab-set::

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

      .. code:: Python

        set(self, index: int, detected_face_item: DetectedFace) -> None

      **Parameters**

        .. line-block::

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

          ``detected_face_item`` :ref:`DetectedFace<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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, DetectedFace detectedFaceItem)

      **Parameters**

        .. line-block::

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

          ``detectedFaceItem`` :ref:`DetectedFace<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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, DetectedFace detectedFaceItem)

      **Parameters**

        .. line-block::

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

          ``detectedFaceItem`` :ref:`DetectedFace<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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, DetectedFace detectedFaceItem) throws FaceException

      **Parameters**

        .. line-block::

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

          ``detectedFaceItem`` :ref:`DetectedFace<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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, detectedFaceItem: DetectedFace) throws

      **Parameters**

        .. line-block::

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

          ``detectedFaceItem`` :ref:`DetectedFace<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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 id3DetectedFaceList_Set (
            ID3_DETECTED_FACE_LIST hDetectedFaceList, 
            int index, 
            ID3_DETECTED_FACE hDetectedFaceItem)

      **Parameters**

        .. line-block::

          ``hDetectedFaceList`` :ref:`ID3_DETECTED_FACE_LIST<id3_face_detected_face_list_class>`
          :guilabel:`in` Handle to the DetectedFaceList object.

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

          ``hDetectedFaceItem`` :ref:`ID3_DETECTED_FACE<id3_face_detected_face_class>`
          :guilabel:`in` DetectedFace 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.


