.. index:: 
  !FaceTemplateDict Class

.. _id3_face_face_template_dict_class:

===============================================================================
FaceTemplateDict Class
===============================================================================

Namespace: :ref:`id3.Face<reference_face>`

.. toctree::
  :hidden:

  add<add>
  clear<clear>
  clone<clone>
  containsKey<contains_key>
  count<count>
  get<get>
  getCount<get_count>
  keys<keys>
  remove<remove>
  set<set>


Definition
----------
.. line-block::
    Represents a dictionary of face templates.

.. tab-set::

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

      .. code:: Python

        class FaceTemplateDict

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

      .. code:: Dart

        class FaceTemplateDict implements Finalizable

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

      .. code:: C#

        public partial class FaceTemplateDict

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

      .. code:: Java

        public class FaceTemplateDict implements AutoCloseable, Serializable

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

      .. code:: Swift

        public class FaceTemplateDict

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

      .. code:: C

        typedef struct id3FaceTemplateDict *ID3_FACE_TEMPLATE_DICT;



Usage
-----

.. tab-set::

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

      .. code:: Python

        faceTemplateDictInstance = id3face.FaceTemplateDict()

      **Explicit destruction**

      .. code:: Python

        # ...
        del faceTemplateDictInstance

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

      .. code:: Dart

        final faceTemplateDictInstance = sdk.FaceTemplateDict();
        // ...

      **Explicit destruction**

      .. code:: Dart

        // ...
        faceTemplateDictInstance.dispose()

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

      .. code:: C#

        using (var faceTemplateDictInstance = new FaceTemplateDict())
        {
           // ...
        }

      **Explicit destruction**

      .. code:: C#

        var faceTemplateDictInstance = new FaceTemplateDict()
        // ...
        faceTemplateDictInstance.Dispose()

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

      .. code:: Java

        try (FaceTemplateDict faceTemplateDictInstance = new FaceTemplateDict()) {
        // ...
        }

      **Explicit destruction**

      .. code:: Java

        FaceTemplateDict faceTemplateDictInstance = new FaceTemplateDict();
        // ...
        faceTemplateDictInstance.close();

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

      .. code:: Swift

        private var faceTemplateDictInstance: FaceTemplateDict? = nil
        faceTemplateDictInstance = try FaceTemplateDict()

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

      .. code:: C

        ID3_FACE_TEMPLATE_DICT hFaceTemplateDict{};
        int err = id3FaceTemplateDict_Initialize(&hFaceTemplateDict);
        if (err == ID3_SUCCESS) {
            // ...
            id3FaceTemplateDict_Dispose(&hFaceTemplateDict);
        }


Properties
----------

.. list-table:: 
  :width: 100%
  :widths: 30 5 65
  :header-rows: 1

  * - Name
    - Type
    - Description
  * - :ref:`count<id3_face_face_template_dict_count_class_member>`
    - int
    - Gets the number of elements contained in the dict
  * - :ref:`keys<id3_face_face_template_dict_keys_class_member>`
    - :ref:`StringList<id3_face_string_list_class>`
    - Gets a string list containing the keys in the dict.
  * - operator [string key]
    - :ref:`FaceTemplate<id3_face_face_template_class>`
    - Gets or sets the element for the key in the dict.

Iteration
---------

This class supports iteration in Dart, C#, Java and Python.

The iteration is done on keys


Methods
-------

.. list-table:: 
  :width: 100%
  :widths: 30 70
  :header-rows: 1

  * - Name
    - Description
  * - :ref:`add<id3_face_face_template_dict_add_class_method>`
    - Adds an item to the FaceTemplateDict object.
  * - :ref:`clear<id3_face_face_template_dict_clear_class_method>`
    - Clears the FaceTemplateDict object.
  * - :ref:`clone<id3_face_face_template_dict_clone_class_method>`
    - Clones the FaceTemplateDict object.
  * - :ref:`containsKey<id3_face_face_template_dict_contains_key_class_method>`
    - Determines whether the FaceTemplateDictobject contains the specified key.
  * - :ref:`get<id3_face_face_template_dict_get_class_method>`
    - Gets an item of the FaceTemplateDict object.
  * - :ref:`getCount<id3_face_face_template_dict_get_count_class_method>`
    - Gets the number of elements in the FaceTemplateDict object.
  * - :ref:`remove<id3_face_face_template_dict_remove_class_method>`
    - Removes an element of the FaceTemplateDict object.
  * - :ref:`set<id3_face_face_template_dict_set_class_method>`
    - Sets an item of the FaceTemplateDict object.
